Skip to content

Classic game Snake, with online-multiplayer/first-person/3D/survival modes, in C++ using SFML, SDL2, and OpenGL. (42 Silicon Valley)

Notifications You must be signed in to change notification settings

ashih42/Nibbler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nibbler

Classic game Snake, with online-multiplayer/first-person/3D/survival modes, in C++ using SFML, SDL2, and OpenGL. (42 Silicon Valley)

To win each round, you must:

  • Reach length of 10.
  • (Multi-player) Survive longer than the opponent.

Prerequisites

You are on macOS with clang++, make, and brew installed.

Installing

./setup.sh

Running

1-Player Mode

./Nibbler -l 1 boardWidth boardHeight

Local 2-Player Mode

./Nibbler -l 2 boardWidth boardHeight

Online 2-Player Mode

Server

./Nibbler -s port boardWidth boardHeight

Client

./Nibbler -c ipAddress port

Controls

Gameplay Controls

  • Player 1: Left Arrow, Right Arrow Turn left or right.
  • Player 2: Numpad 4, Numpad 6 Turn left or right.
  • R Restart new round.
  • Escape Terminate the game.

Graphics Controls

  1. 1 Select SFML visualizer.
  2. 2 Select SDL2 visualizer.
    • G Toggle grid.
  3. 3 Select OpenGL visualizer.
    • W Toggle wireframe mode.
    • S Toggle shading.
    • V Toggle first/third person POV.

About

Classic game Snake, with online-multiplayer/first-person/3D/survival modes, in C++ using SFML, SDL2, and OpenGL. (42 Silicon Valley)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published