Skip to content

Dive into the neon-lit grid of Cyber Serpent, a modern twist on the classic snake game. Cyber Serpent challenges players to navigate a digital serpent through a vibrant, ever-changing arena. Your objective is simple: guide your serpent to consume food blocks, grow longer, and rack up the highest score possible.

License

Notifications You must be signed in to change notification settings

zEuS0390/cyber-serpent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CyberSerpent

CyberSerpent is essentially a classic snake game that moves in different directions, passes through borders, and appears on the other side. With its neon-lit grid design, it gives players a sense of nostalgia while remaining fun at the same time.

Demo Video: https://youtu.be/nnagibXqy0g

Installation

The binaries I have made so far are for Linux and Windows machines; I haven’t tried to build them on macOS. Just go to the latest release link and download the installer or archive file for your operating system.

Download the Latest Release: https://github.com/zEuS0390/cpp-sfml-snake-game/releases/latest

Build from Source

You can build the game from the source using the CMake tool, so make sure you have it installed. I designed it to allow you to easily build it on your own machine. The game was created with the SFML library, but since it's already defined in the CMake configuration file, you don’t need to handle it manually.

If you are using Linux, make sure that the following dependencies are present on your system; otherwise, it will not work properly:

  • libfreetype6-dev
  • libx11-dev
  • libxrandr-dev
  • libudev-dev
  • libgl1-mesa-dev
  • libflac-dev
  • libsndfile1-dev
  • libvorbis-dev
  • libvorbisenc2
  • libvorbisfile3
  • libopenal-dev
  • libpthread-stubs0-dev
  • libjpeg8-dev
  • libxcursor-dev

Note: Make sure you have Git installed, as it will be used by CMake to download SFML.

Follow these steps:

  1. Open a terminal and navigate to the root directory of the project.
  2. Create an empty directory: mkdir build/.
  3. Generate the build system files in it: cmake -S . -B build/.
  4. Build the project: cmake --build build/.
  5. Finally, navigate to the build/bin directory and run the game.

Demo Screenshots

menu

gameplay-2

gameplay-1

gameplay-3

About

Dive into the neon-lit grid of Cyber Serpent, a modern twist on the classic snake game. Cyber Serpent challenges players to navigate a digital serpent through a vibrant, ever-changing arena. Your objective is simple: guide your serpent to consume food blocks, grow longer, and rack up the highest score possible.

Topics

Resources

License

Stars

Watchers

Forks