Click here to Skip to main content
15,891,372 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am a student in highschool. In his second year of computer programming. For my culminating activity i need to make a game and i chose to make "Lunar Lander". Ive made simple applications and simple games like pong. I just don't think that i learned enough to make a game like this.

Can anyone help of how i can code this and how to start it.

Please Help?
Posted
Comments
Maciej Los 10-Dec-14 2:15am    
This is not well-formed question. You provided nothing about your issue ("i don't think that i learned enough"). So, start learning, do not expect a code. Try, then come back here and ask detailed question.

1 solution

Well, in your pong game you had a ball and moved it around the screen?

So, take your ball and pretend it is your lunar lander.

Get it moving from the top to the bottom of the screen with no movement in the X direction.

Now make it accelerate due to 'gravity'

Now make it hit the ground (i.e. collision detection)

Now add a motor - which reduces it's vertical velocity

Now add limited fuel for the motor

Now add movement right and left (if you're confident, do this by rotating the craft, if not, use two keys - one each to fire a thruster left or right)

Now, make your ball prettier, add sound, score and stuff if you have time

Good luck
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900