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.
You are on macOS with clang++
, make
, and brew
installed.
./setup.sh
./Nibbler -l 1 boardWidth boardHeight
./Nibbler -l 2 boardWidth boardHeight
./Nibbler -s port boardWidth boardHeight
./Nibbler -c ipAddress port
- 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.
1
Select SFML visualizer.2
Select SDL2 visualizer.G
Toggle grid.
3
Select OpenGL visualizer.W
Toggle wireframe mode.S
Toggle shading.V
Toggle first/third person POV.