Java script Snake Game Assignment
Budget: €30 – €250 EUR
Assignment 1: The canvas is rather small. Increase it by adjusting the canvas size value in settings.js.
Assignment 2: The snake moves once every 30 frames. Now that the canvas size has been increased this is rather slow. Make it move more frequently by reducing the frame counter limit near the top of game.js.
Assignment 3: The input controls only work in two directions. Implement controls for the other two directions. Look at how controls for the other two directions were implemented near the bottom of game.js.
Assignment 4: Right now the snake wraps around when it reaches the edge of the game screen. In some versions of the game hitting the edge ends the game. Make the necessary changes to the checkEdgeCollision() function so that the game resets when the snake hits any of the edges of the screen.
Assignment 5: The score system doesn't work. Give the player points whenever an apple is eaten by increasing the value of the score variable.
Assignment 6: Give the snake a random color whenever an apple is eaten. Make sure it's not too dark or you won't be able to see the snake.
Assignment 7: Increase the snake's speed for every x amount of apples that are eaten.
Assignment 8: Add a golden apple to the game. It has a 10% chance to appear instead of the regular apple every time an apple is eaten. It grants more scorepoints than the regular
Assignment 2: The snake moves once every 30 frames. Now that the canvas size has been increased this is rather slow. Make it move more frequently by reducing the frame counter limit near the top of game.js.
Assignment 3: The input controls only work in two directions. Implement controls for the other two directions. Look at how controls for the other two directions were implemented near the bottom of game.js.
Assignment 4: Right now the snake wraps around when it reaches the edge of the game screen. In some versions of the game hitting the edge ends the game. Make the necessary changes to the checkEdgeCollision() function so that the game resets when the snake hits any of the edges of the screen.
Assignment 5: The score system doesn't work. Give the player points whenever an apple is eaten by increasing the value of the score variable.
Assignment 6: Give the snake a random color whenever an apple is eaten. Make sure it's not too dark or you won't be able to see the snake.
Assignment 7: Increase the snake's speed for every x amount of apples that are eaten.
Assignment 8: Add a golden apple to the game. It has a 10% chance to appear instead of the regular apple every time an apple is eaten. It grants more scorepoints than the regular
Related categories:
PHP
Business, Accounting, Human Resources & Legal
JavaScript
JavaFX
Software Architecture