Moon Lander Matlab Game Example of getting keypressed

バージョン 1.3.0.0 (11.6 KB) 作成者: Héctor Corte
Lunar Lander game in Matlab, fully functional, and an example of how to get keypressed in figures.
ダウンロード: 2K
更新 2015/4/6

ライセンスの表示

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[1], 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.

References:
[1] Lunar Lander, Game, http://en.wikipedia.org/wiki/Lunar_Lander_%28video_game%29

This function was written by :
Héctor Corte
B.Sc. in physics 2010
M.Sc. in Complex physics systems 2012
NPL (National Physical Laboratory), London,United kingdom.
Email: leo_corte@yahoo.es

引用

Héctor Corte (2024). Moon Lander Matlab Game Example of getting keypressed (https://www.mathworks.com/matlabcentral/fileexchange/38927-moon-lander-matlab-game-example-of-getting-keypressed), MATLAB Central File Exchange. 取得済み .

MATLAB リリースの互換性
作成: R2010a
すべてのリリースと互換性あり
プラットフォームの互換性
Windows macOS Linux
カテゴリ
Help Center および MATLAB AnswersVideo games についてさらに検索
タグ タグを追加

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
バージョン 公開済み リリース ノート
1.3.0.0

This new version has better graphics and uses a class to handle the spaceship. It is now a better example for a game.

1.2.0.0

Fixed the problem with the intro. And now the engine stays on fire despite you push other keys.

1.1.0.0

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.

1.0.0.0