Skip to content

jungm2018/3DSnake

Repository files navigation

How to run the game?

In MacOS, opening the file, "host.command". In Windows, opening the file, "host.bat". When runing the program, Security warning would show up. The warning should be ignored or a user needs to change the the file permission (by setting chmod 744 in terminal). After opening the file, the console window will give a user the two:address and port number. To run the game, a user needs to type "address:port number" in web browser. (example:"localhost:8000").

How to play?

Users can control the snake movement. The snake moves forward with the straight direction as a default. With controlling the snake's movement, a user can gain some points by eating apples. When an apple is just consumed, a new apple will be created in the random location on the world. When the head is colliding into the wall, the snake will die. When the head is colliding into its body(tail), it will lose some points and it will lose some part of its body.

There are 7 buttons to control the game or to change the view mode.

  • Snake Controller

'w' : speed up

'd' : right turn

's' : slow down

'a' : left turn

'5' : manually making the snake longer.

  • View point Controller

'6' : change the game screen to snake's perspective. The position of the camera is on the head of snake.

'7' : change the game screen on the top of the world. It is the default perspective.

About

3D Snake Game using WebGL

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages