Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🐍 OG Snake 🐍

Don't we all miss our old Nokia phones? The simplicity of a device, that isn't connected to the World Wide Web is something that many people long for nowadays.

Except for maybe calling your mom from time to time, you probably used it like any other kid: to play Snake. And that is exactly, what this C++ game will allow you to do once again.

About

History

"After launching in 1997 on the Nokia 6110, Snake quickly became a phenomenon." 1

"It involves pressing arrow keys to move each character, wherein players would leave a solid trail behind them wherever they turned. To win, the player had to last the longest without hitting anything else." 1

"Snake was conceived in [the] programming language C, just like many other parts of the software in handsets of the generation. The game was “hand-written” line-by-line, and no specific tools or code generators were needed (or available) to do so." 1

Nokia phones, showing Snake Gameplay

Gameplay

You are able to control the snake by using the following keys:

  • W/⬆️ to go up
  • A/⬅️ to go left
  • S/⬇️ to go down
  • D/➡️ to go right

When starting the game, the snake will automatically go. After dying, you will have to hit a key, to start again.

⚠️ You are not able to go through the walls!

At the bottom, below the window, you will find various color options. Change the color settings to your desires! Simply select by clicking on one of the other colors.

Color options

Installation

You will have to have the raylib library installed and use VS Code as IDE. To run the application, you do not need to clone the repository, instead do the following:

  1. Download the code as a .zip file.
  2. Extract the file.
  3. Double click on the main.code-workspace file. This will open the template in VS Code.
  4. From the Explorer Window of VS Code navigate to the src folder and double click on the main.cpp file.
  5. Press F5 on the keyboard to compile and run the program.2

References

Footnotes

  1. https://www.itsnicethat.com/features/ 2 3

  2. https://github.com/educ8s/Raylib-CPP-Starter-Template-for-VSCODE-V2

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages