#game #game-console #console #cli-game #config-toml #cli

app marsrover

Drive a rover across mars surface without falling into a crater!

3 releases

0.1.0-alpha.3 Aug 22, 2023
0.1.0-alpha.2 Aug 16, 2023
0.1.0-alpha.1 Aug 10, 2023

#233 in Games

Download history 1/week @ 2024-02-16 14/week @ 2024-02-23 8/week @ 2024-03-01 2/week @ 2024-03-08 2/week @ 2024-03-15 40/week @ 2024-03-29 12/week @ 2024-04-05

52 downloads per month

MIT license

285KB
895 lines

marsrover

marsrover is a reimplementation of the venerable and well-known game moon-buggy. The idea of the game is that you drive a small vehicle over a surface and you have to cope with obstacles, first there are small craters you have to jump over (using Space), later there are bigger ones and eventually some monsters appear, which you have to shoot (using j).

screenshot

Configuration

The configuration files resides in $XDG_CONFIG_HOME/marsrover/config.toml. You can use it to adapt the colors or create levels.

Levels

There are a couple of levels predefined in the game, after the last level new levels are randomly generated.

If you want to define your own levels, you can do that in the configuration files. Per level there are a couple of settings for probabilities of obstacles occuring and a points setting that defines how many points the user can get in that level (=the game switches to the next level if the user reaches the points).

[[levels]]
prob_crater_one = 0.2
prob_crater_two = 0.0
prob_crater_three = 0.0
prob_monster = 0.5
prob_monster_jumping = 0.3
points = 100

Dependencies

~2.8–9MB
~77K SLoC