Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/typesafeschwalbe/lania
A 2d top-down turn-based strategy terminal game written from scratch in C.
https://github.com/typesafeschwalbe/lania
2d 2d-game cli-game command-line-game game strategy strategy-game terminal-app terminal-game terminal-graphics top-down top-down-game turn-based turn-based-game turn-based-strategy
Last synced: 2 months ago
JSON representation
A 2d top-down turn-based strategy terminal game written from scratch in C.
- Host: GitHub
- URL: https://github.com/typesafeschwalbe/lania
- Owner: TypeSafeSchwalbe
- License: mit
- Created: 2023-09-17T08:06:03.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-12-17T10:53:33.000Z (about 1 year ago)
- Last Synced: 2024-10-23T22:16:14.011Z (3 months ago)
- Topics: 2d, 2d-game, cli-game, command-line-game, game, strategy, strategy-game, terminal-app, terminal-game, terminal-graphics, top-down, top-down-game, turn-based, turn-based-game, turn-based-strategy
- Language: C
- Homepage:
- Size: 787 KB
- Stars: 11
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Lania
*A 2d top-down turn-based strategy terminal game written from scratch in C.*# How to play
Download the pre-built release binary for your platform.
If you have a C compiler installed, you may instead also clone the repository and compile all the `.c`-files in the `src`-directory.
If you also happen to use Linux, you may also just simply run `run.sh` (by running `chmod +x ./run.sh` and then `./run.sh`, or by running `bash -e run.sh`) (this will use `gcc`).The downloaded or compiled executable must be started in a terminal of your choice. Although slow because of the coloring, the Windows command prompt and Windows PowerShell were proven to work as well. Only 3-bit coloring (background and foreground) with ANSI escape sequences is used, meaning it is compatible with a wide range of terminals.
During execution, the game will create a file called `savegame` in the current working directory. It does what it says, storing the progress you made in the game. Delete this file to reset your progress.
# Screenshots
*(Taken on Fedora Linux in the GNOME terminal)*
![Battle of Abil](./screenshots/battle_of_abil.png)
![Endless Desert](./screenshots/endless_desert.png)
![Enchanted Lake](./screenshots/enchanted_lake.png)
![Narrow River Fords](./screenshots/narrow_river_fords.png)
![Western Oasis](./screenshots/western_oasis.png)