Welcome to Snake-JS from UWC 3 final!
Enjoy the 6-hour-made fun game from the Ukrainian Web Challenge III! Reach the greatest level within the minimum time and be happy! :) Don't forget to enter your name before start.
- jQuery
- Underscore.js
- localStorage to save results
- Dev: 10.8 kB
- Minified: 4.79 kB
<script src="snake.js"></script>
<script>
SnakeJS.init({
// optional parameters
maxFood: 10
});
</script>
snakeLength
- initial cells count for snake (default:6
)speed
- initial timeout in milliseconds for snake to move (default:500
)acceleration
- timeout reduction in milliseconds after level up (default:20
)maxSpeed
- end point for timeout, when it will not be changed anymore (default:200
)cols
- playfield columns (default:20
)rows
- playfield rows (default:13
)maxFood
- maximum number of food, that can be generated after all food is eaten by snake. minimum is 1 (default:5
)
Have questions? Feel free to contact me on Github.