This is an exploration game where the player have to find as many treasures as possible in a weird desert where you can find sand, but also water and lava !?! Oh, and also sand worms!! To make it even stranger, there exists also portals teleporting you to the exit.
It is highly recommended to use Stack to build this game. Inside the folder containing the game, simply use
stack setup
stack build
to compile it and use
stack exec DesertExplorer
to play this awesome game.
At first, a menu will ask the player for
- sight: it represents the number of tiles the player can see in all directions.
- max water: maximal quantity of water supplies (when this reach 0, the player instantly dies).
- seed: a number that is used to generate the desert.
- treasure likelihood: percentage (1 - 99) of chance that a treasure is hidden in a Sand tile.
- XXX likelihood: a percentage (1 - 99) representing the probability of founding a XXX tile in the desert (lava adjacent is for tiles probability to find a lava tile next to another lava tile).
- Worm size: maximal size for a worm
- Load and Save file: path to file for loading or saving
This menu will repeat itself until the player specify a valid configuration.
When the game start, the desert will show limited to the sight specified in the configuration. Desert uses squares with color representing:
- yellow : a sand tile, which may or not contain a treasure
- blue : a water tile, to refill the water supplies
- red : a lava tile, instant death
- green : a portal, ending the game winning all found treasures
Player is a small black circle, and worms are grey circles.
Next to the desert, informations are displayed:
- number of collected treasures
- remaining water
- distances to closest water, treasure and portal
Distances uses the "Maybe" notation, meaning it can be
- Just X : if distance is X from player position
- Nothing : if theres is no reachable corresponding tile.
To move the explorer in the desert, player will use keys "w", "a", "s" and "d" to go respectively up, left, down and right. Each move costs 1 supply of water. To save, use "k".