Skip to content

Latest commit

 

History

History
28 lines (22 loc) · 1.01 KB

README.md

File metadata and controls

28 lines (22 loc) · 1.01 KB

Cnake

This project constains 2 versions of the game. A legacy version in C11 and a new version in C++20. None is better than the other, they're simply different flavors of the same game (the C++ one is partially a rewrite).

Screenshot from 2023-07-16 19-29-32 Screenshot from 2023-07-16 19-31-34 Screenshot from 2023-07-16 19-31-40

How to compile

Build dependencies:

  • CMake (build system)
  • Ncurses (library)
  • A compiler with C++20 support
$ cmake . -DCMAKE_BUILD_TYPE=Release
$ make

After compiling you'll have a cnake for the C11 version and a cnakepp for the C++20 version.

Controls

Move with WASD or the arrows keys
Press p to pause
Stay pressed to go faster

The game can be quit with ctrl + c or through the pause menu