A downloadable game for Windows, macOS, and Linux

Bättre att stanna inomhus (better be in the house) is a Sista-based C++ videogame.

  • Refer to the README for more complete instructions

Description

Your character is represented by the $ symbol and is happy to live in a 2D grid world; there are chickens (%) laying eggs (0) that the you can eat, chests (C) that may contain bricks and food, and comfortable walls (#) that can be used to build a house.


However the world is not as friendly as it may seem at daylight, there are snakes (~) that eat the precious eggs, weasels (}) that hunt the chickens, threatening blind zombies (Z) that will follow you around and that you should better not bump, archers (A) that will shoot you from a distance.

But, as it often happens in life, the worst enemy is yourself: when the night comes the character goes out of control and as a player you cannot control your character anymore, you can only watch it move around, destroy its own inventory and put itself in real danger.

Will you be able to build a house before the night comes? When it happens all the gates (=) will be closed and your fury will be unleashed.

Credits

Published 2 days ago
StatusReleased
PlatformsWindows, macOS, Linux
AuthorFLAK-ZOSO
GenreSurvival
Tags2D, ascii, Retro, terminal
Average sessionA few minutes
InputsKeyboard

Download

Download
Inomhus-0.1.1.zip 15 MB
Download
inomhus 1.7 MB
Download
inomhus.exe 5 MB
Download
inomhusApple 1 MB
Download
inomhus.mp4 14 MB

Install instructions

Installation

From source
git clone https://github.com/FLAK-ZOSO/Inomhus
cd Inomhus
make

If you don't have make installed you can copy and paste the following commands in your terminal.

g++ -std=c++17 -Wall -g -c -static include/sista/ANSI-Settings.cpp include/sista/border.cpp include/sista/coordinates.cpp include/sista/cursor.cpp include/sista/field.cpp include/sista/pawn.cpp
g++ -std=c++17 -Wall -g -c -static inomhus.cpp -Wno-narrowing
g++ -std=c++17 -Wall -g -static -o inomhus inomhus.o ANSI-Settings.o border.o coordinates.o cursor.o pawn.o field.o
rm -f *.o
Customization

If you compile the game from source you will be able to customize the game.

#define DAY_DURATION 700
#define NIGHT_DURATION 200
#define WIDTH 70
#define HEIGHT 30

These are some of the constants that you can change in the inomhus.cpp file.

Egg::hatchingDistribution(0.26); // 26%
eggSelfHatchingDistribution(0.001); // 0.1%
Chicken::eggDistribution(0.0075); // 0.75%
Chicken::movingDistribution(0.75); // 75%
Archer::movingDistribution(0.25); // 25%
Archer::shootDistribution(0.005); // 0.5%
Walker::movingDistribution(0.30); // 30%
walkerSpawnDistribution(0.003); // 0.3%
archerSpawnDistribution(0.004); // 0.4%
weaselSpawnDistribution(0.01); // 1%
snakeSpawnDistribution(0.01); // 1%
wallSpawnDistribution(0.01); // 1%

Having access to the source code you can also change the probabilities of the events that happen in the game, like the spawn of the enemies or the hatching of the eggs.

From binary

Download the executable for your system.

Usage

Open your ANSI terminal - on Windows you should use Windows Terminal while on Linux and MacOS you can use the default terminal - and run the executable.

./inomhus
inomhus.exe

If it doesn't seem to work and you just downloaded the executable, you may need to give it the right permissions or simply compile it from source as explained above.

If you don't want the tutorial to be played, just enter 'n' as explained in the intro screen; you shouldn't skip it the first time (also you can replay it for the sake of dismantling the instructions which are part of the field!).

Use a proper zoom, read the controls and enjoy the game.

Development log

Leave a comment

Log in with itch.io to leave a comment.