Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Code Snippets / [DBP] Asteroid Lander (My take on Lunar Lander)

Author
Message
Zotoaster
19
Years of Service
User Offline
Joined: 20th Dec 2004
Location: Scotland
Posted: 20th Sep 2007 22:24
We all know the famous lunar lander - one of those games that once you start playing you cant stop. I felt like making something similar, but a bit more advanced, so this is my version - Asteroid Lander.

This isnt complete, but it's too small to be in WIP, and always will be, lol. You cant even land yet, infact, all you can do is move around.

The idea is just like Lunar Lander - land on a given point on a landscape. This is exactly the same, instead the landscapes arent just flat and boring; they are asteroids!

Controls are:
Arrowkeys - Thrust
Button 1/2 - Change camera mode (1 - static, 2 - follow)



Before I get into checking for collision, I still have to make some sort of atmosphere thing. It's a bit annoying that you get air resistance out in space.

Physics are pretty realistic. They use simple Newtonian laws, so movement and acceleration works, and so does orbiting, but only if there is no air resistance, which is problematic at the moment.
If you wish to remove all air resistance, go to line 647, and change parameter 2 from 0.995 to 1.0

Enjoy

C&C please!

"It's like floating a boat on a liquid that I don't know, but I'm quite happy to drink it if I'm thirsty enough" - Me being a good programmer but sucking at computers
The Nerd
20
Years of Service
User Offline
Joined: 5th Jun 2004
Location: Denmark
Posted: 20th Sep 2007 22:59
hehe, that's pretty neat! This could turn out to be a very fun little game.

Login to post a reply

Server time is: 2024-11-22 18:44:58
Your offset time is: 2024-11-22 18:44:58