functional bots, small refactoring, readme edit

This commit is contained in:
programsnail 2024-07-26 22:36:12 +03:00
parent 5299e89633
commit 7e67a3bd30
13 changed files with 179 additions and 91 deletions

View file

@ -1,10 +1,21 @@
# Game (Linux)
# Game (Linux) - Slither.io offline clone
Game, based on https://github.com/imp5imp5/game_template_linux.
- Snake should eat apples to grow
- Current score displayed on top of the screen
- There are bots that eat apples and can not be destroyed by player. Snake is destroyed when its head intersects bot
### Build
Game is based on https://github.com/imp5imp5/game_template_linux.
### Build (xmake)
``sudo apt install g++ cmake libx11-dev xmake`` \
``xmake``
### Run
### Run (xmake)
``xmake run``
### Build (cmake)
``sudo apt install g++ cmake libx11-dev`` \
``mkdir build && cd build`` \
``cmake -DCMAKE_BUILD_TYPE=Release ..`` \
``make``