Netid: sh122
Title: Snake Game
Site: http://eminent-goldfish.surge.sh
This is the assignment 3 of COMP 531, Web Development, JavaScript Game. The author created a new-defined, cursor-based java game.
#1 Use your cursor to control the direction. The direction relative to the head of snake is your direction.
#2 If your cursor is in the canvas, your game is started. If your mouse is off the canvas, you can't do any operation.
#3 Can't move toward the upsite direction. Your snake is initially set as upward.
#4 If you eat apple, you win a point and also make yourself one unit longer.
#5 If you hit the wall, or your self, your game is over.
#6 Level will increase when you get more points. Your speed may be accerated as your level is higher.