Skip to content

Corso02/ncurses-game

Repository files navigation

Game made with ncurses

This repo is for my game made with ncurses library. Main idea behind this game was to make a game in terminal using ncurses, and learn how to make games in mentioned library.

It is strategy game based around time and resources. You can uprage certain buildings in your village to gather more resourcesevery 5 seconds. Every 5 days there will be a raid. You will have to have bigger army than raiding party. If you dont you lose your whole army, and loose some resources.

Compilation

To compile this game you will need ncurses library for C. Compile command: gcc -std=c11 -Wall -Werror -g main.c -lm -lcurses -o main

Tutorial

To read tutorial you should start the game as:./main -hor./main --help or ./main -t or ./main --tutorial

Save system

Every game is saved automatically to a file. Each save file has its own number (starting on 1). Name of save file is: saveX.txt where X is the number of given save file If you want to load your save file you start your game as: ./main -s X where X is the number of save. When you loaded your save file, yout will be automatically saved to that file after you quit. SAVING IS AUTOMATIC and it happens after you quit the game.

TODO:

Add actual village (drawing of it)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published