Author Topic: [Lua] Hill Climb Racing  (Read 25890 times)

0 Members and 1 Guest are viewing this topic.

Offline CinusMinus

  • LV3 Member (Next: 100)
  • ***
  • Posts: 43
  • Rating: +4/-0
    • View Profile
[Lua] Hill Climb Racing
« on: July 20, 2014, 05:51:04 pm »
Me again with another lua game for the nspire.
This is the result of me playing around with the built-in physics engine in lua. In the current state the game is playable, but lacking important elements, such as score, upgrades, different cars and better graphics.
What is implemented right now:
- car controlled with the arrow keys
- generated landscape wich adds to the front and removes its back
- bad vehicle physics

Planned features include:
- proper vehicle physics
- highscores
- upgrades
- different cars
- different tracks
- fuel
- death which ends the game :devil:
(basically the stuff from Hill Climb Racing)

Screenshots:


« Last Edit: August 19, 2014, 11:32:13 am by CinusMinus »
Projects:
Chicken Invaders [Finished]
TI.Image Tools [Finished]
MC2D Texture Pack Creator [Finished]
HillClimbRacing [In Development]

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Hill Climb Racing
« Reply #1 on: July 20, 2014, 08:53:56 pm »
Looks quite cool. I can't try it though since I have OS 3.1 D:

Will it be like the bike game in California's Games? http://en.wikipedia.org/wiki/California_Games

Offline CinusMinus

  • LV3 Member (Next: 100)
  • ***
  • Posts: 43
  • Rating: +4/-0
    • View Profile
Re: Hill Climb Racing
« Reply #2 on: July 21, 2014, 07:31:55 am »
Looks quite cool. I can't try it though since I have OS 3.1 D:
I would kepp downward compatibility, if the physics engine would be included in older versions. I'm sorry

Will it be like the bike game in California's Games? http://en.wikipedia.org/wiki/California_Games
Well at the moment I have no plans of how exactly the vehicles should look like. And I thought of this: https://play.google.com/store/apps/details?id=com.fingersoft.hillclimb
Projects:
Chicken Invaders [Finished]
TI.Image Tools [Finished]
MC2D Texture Pack Creator [Finished]
HillClimbRacing [In Development]

Offline Princetonlion.tibd

  • Members
  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 790
  • Rating: +3/-4
    • View Profile
Re: Hill Climb Racing
« Reply #3 on: July 21, 2014, 09:06:42 am »
[...]
- bad vehicle physics

Wait, you're implementing bad vehicle physics?

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Hill Climb Racing
« Reply #4 on: July 21, 2014, 11:07:01 am »
I think he means that for the time being he hasn't implemented good one yet. :P

Offline CinusMinus

  • LV3 Member (Next: 100)
  • ***
  • Posts: 43
  • Rating: +4/-0
    • View Profile
Re: Hill Climb Racing
« Reply #5 on: July 21, 2014, 12:00:38 pm »
That's it :D
I'm still working out how joints and springs work, that's why the vehicle physics are not too god right now. But that will be one of the next things to do  ::)
Projects:
Chicken Invaders [Finished]
TI.Image Tools [Finished]
MC2D Texture Pack Creator [Finished]
HillClimbRacing [In Development]

Offline LDStudios

  • Coder Of Tomorrow
  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 388
  • Rating: +41/-1
    • View Profile
    • LD Studios
Re: Hill Climb Racing
« Reply #6 on: July 22, 2014, 11:36:03 am »
Haha, if your car gets stuck, just spawn like 50 cars under it to fling it forward :P
Anyways, great job!



Offline Princetonlion.tibd

  • Members
  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 790
  • Rating: +3/-4
    • View Profile
Re: Hill Climb Racing
« Reply #7 on: July 22, 2014, 11:37:00 am »
I don't think you can spawn cars in game :P

Offline LDStudios

  • Coder Of Tomorrow
  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 388
  • Rating: +41/-1
    • View Profile
    • LD Studios
Re: Hill Climb Racing
« Reply #8 on: July 22, 2014, 11:38:00 am »
You can, I just tried it out :P
Probably just temporary for testing the physics



Offline Princetonlion.tibd

  • Members
  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 790
  • Rating: +3/-4
    • View Profile
Re: Hill Climb Racing
« Reply #9 on: July 22, 2014, 11:53:12 am »
I suggest keep that feature.
It could overload your calc :)

Offline CinusMinus

  • LV3 Member (Next: 100)
  • ***
  • Posts: 43
  • Rating: +4/-0
    • View Profile
Re: Hill Climb Racing
« Reply #10 on: July 23, 2014, 04:37:05 pm »
You can even spawn blue balls. But I won't tell you how  :P (and I'm not sure if it would work on a real calc insted of the emulator)
Anyway, this is just a temporary feature and as the game is stil in an early stage I decided to keep it for now. I used it to determine how to handle the landscape properly.
Projects:
Chicken Invaders [Finished]
TI.Image Tools [Finished]
MC2D Texture Pack Creator [Finished]
HillClimbRacing [In Development]

Offline LDStudios

  • Coder Of Tomorrow
  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 388
  • Rating: +41/-1
    • View Profile
    • LD Studios
Re: Hill Climb Racing
« Reply #11 on: July 23, 2014, 05:20:30 pm »
nice, I wasn't even aware of on.rightMouseDown :)



Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Hill Climb Racing
« Reply #12 on: July 24, 2014, 01:31:29 am »
Maybe as the game progresses you could add obstacles like hay bales that slows you down greatly and stuff that can kill you like cows slowly wandering around, rocks, nethams, holes and stuff like that.

Offline CinusMinus

  • LV3 Member (Next: 100)
  • ***
  • Posts: 43
  • Rating: +4/-0
    • View Profile
Re: Hill Climb Racing
« Reply #13 on: July 24, 2014, 05:28:15 am »
Holes should be possible, but other obstacles than steep slopes could be a problem, because you can't avoid them in a 2D world. Things that slow you down should be possible though
Projects:
Chicken Invaders [Finished]
TI.Image Tools [Finished]
MC2D Texture Pack Creator [Finished]
HillClimbRacing [In Development]

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Hill Climb Racing
« Reply #14 on: July 24, 2014, 10:57:01 am »
what if they were placed just after jumps and the like?