Version 0.3 (beta, so please, give feedback).
This is a game and also an example of how to read/use keypress functionality from figures.
it's a tribute to Moon Lander, without any lucrative pourpouse.
The game opens a figure with the spaceship that must land on the square
avoiding hitting the land.
Use the arrows to turn the spaceship and the spacebar to fire the engine.
 Lunar Lander, Game, http://en.wikipedia.org/wiki/Lunar_Lander_%28video_game%29
This function was written by :
B.Sc. in physics 2010
M.Sc. in Complex physics systems 2012
NPL (National Physical Laboratory), London,United kingdom.
I close matlab and redownloaded the file and now it works perfectly :)
When run says:
Undefined function or variable 'spaceship'.
Error in Moon03 (line 52)
Is there something I need to add to the program for it to run properly/update matlab?
Thanks. I have fixed that and also the engine now don't stops when pushing another key.
need to move intro() to after spaceship & terrain are initialized
This new version has better graphics and uses a class to handle the spaceship. It is now a better example for a game.
Fixed the problem with the intro. And now the engine stays on fire despite you push other keys.
I fixed the problem with the intro. And now the engine stays on fire despite you push another keys at the same time of spacebar.
Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.