Skip to main content

Lunar Lander

Lunar Lander that fits within the default IDLE editor screen of 80 x 25 characters.


Rex Allison
(pyrex)
This project is inspired by the NOMAM Basic Ten-Liners competition, JS1K, and similar contest to squeeze a game into some ridiculously small amount of code. Use the left and right arrows and space bar for controls. r to reset and esc to exit.

Changes

Links

Home Page
https://github.com/pyrex8/lunarlander.git

Releases

Lunar Lander 1.0 — 12 Dec, 2015

Pygame.org account Comments

  • dg 2015-12-18 03:55

    it didnt work

  • Yarillo 2015-12-30 02:20

    dg: it won't work without pyaudio (https://people.csail.mit.edu/h... or a recent version of python (above 3.0).

    E:\Bin\Python32\lib\site-packages\pkg_resources\__init__.py:106: UserWarning: Support for Python 3.0-3.2 has been dropped. Future versions will fail here.
    warnings.warn(msg)
    Traceback (most recent call last):
    File "E:\Travail\Python\lunarlander.py", line 6, in <module>
    pygame.font.init();ft=pygame.font.SysFont('courier',fs);pa=pyaudio.PyAudio()
    File "E:\Bin\Python32\lib\site-packages\pygame\sysfont.py", line 577, in SysFont
    font = pygame.font.Font(fontname, size)
    TypeError: integer argument expected, got float
    [Finished in 1.6s]

  • Brian Zimmerman 2016-01-05 00:51

    Two things I had to do to get this to work for Windows 7 from the command prompt:
    1) python -m pip install pyaudio
    2) edit lunarlander19.py. On line 6, change ft=pygame.font.SysFont('courier',fs); to ft=pygame.font.SysFont('courier',20)

    Che Kotka 2020-01-14 07:06

    ft=pygame.font.SysFont('courier',int(fs)) - works for me :)