Lunar Lander
ReleasedVersion 1.0
Land on the pad with a four-step throttle and side thrusters before the fuel runs out, one pixel at a time.


Download
Build: pack image
- File
lander-1.0.opk- Version
- 1.0
- Size
- 11,807 bytes
- Date
- SHA-256
9b008f030e857ca917275da9e1099beff00b5a57fe000425962168719eca9a57
Source + build (zip)
- File
lander-1.0-source.zip- Version
- 1.0
- Size
- 178,192 bytes
- Date
- SHA-256
8cf71107af18ba583914d3ee779120c7b02fbda0f8bdaebdbce1a898acf8d089
11,807 bytes: a 16K Datapak or larger. In an emulator, load the pack image into slot B of an LZ or LZ64. On a real Organiser, load the psion/ folder from the source + build zip with RPBOOT (about 11.7K, or about 5K without the source text).
Licence: MIT.
Compatibility
| Model | Runs it? | Note |
|---|---|---|
| CM | Not supported | Needs the four-line screen |
| XP | Not supported | Needs the four-line screen |
| LA | Not supported | Needs the four-line screen |
| LZ | Works | Four-line screen |
| LZ64 | Works | Four-line screen |
Tested on the Jape emulator (LZ64), with the game's rules checked against a Python simulation.
About
A single-screen Lunar Lander in OPL. The lander moves down one pixel at a time across a 75 by 32 pixel sky, drawn with two user-defined characters that are redefined as it falls. Land gently on the pad with a four-step throttle and side thrusters before the fuel runs out.
Each level has less fuel, a narrower pad and more starting drift. You have three ships, and the best score is kept between games.
Install
- Download the pack image,
lander-1.0.opk. - In the Jape emulator: Select OPK file, choose the file, Create, then Slot B.
- On the Organiser: Prog, Run, press MODE until the prompt shows
B:, typeLANDERand press EXE. - For a real Organiser, see Getting started for loading with RPBOOT.
Manual
| Key | Action |
|---|---|
| UP / DOWN | Throttle up or down one step (0 to 3). It stays where you leave it |
| LEFT / RIGHT | One side burst: sideways speed changes by 16, costs 2 fuel |
| ON/CLEAR | Pause. Q quits the game (the score still counts), any other key carries on |
On the title screen: EXE or SPACE plays, S switches the engine sound on and off, H shows the keys, ON/CLEAR quits.
The HUD: F is fuel, V the vertical speed (v falling, ^ rising), H the horizontal speed, T the throttle, and OK means it is safe to land now.
Rules:
- Gravity adds 2 to the downward speed every tick (5 ticks a second). Throttle 1 burns 1 fuel and gives 1 thrust, 2 gives 2 (holds your speed), 3 burns 4 and gives 4.
- Land on the pad with a downward speed of 24 or less and a sideways speed of 8 or less. Anything else is a crash.
- Each landing scores the fuel left plus 25 × the level. A crash replays the level with new terrain.
- Fuel starts at 500 and drops by 25 a level, never below 275. The pad narrows from 3 wide to 1.
Technical notes
- Nine OPL procedures, about 11.7K with their source text; the best score lives in the data file
A:LANDER. - The game's physics was checked against a Python simulation of the same rules.
Changelog
| Date | Version | Change |
|---|---|---|
| 1.0 | First release. |
Source
The source is in the source + build zip, under the MIT licence. It holds the program as committed, the shared Psion tools it builds with, and the built pack, and it rebuilds the same pack byte for byte. A public repository will follow.