Milescript Demos - Snake Demo
The Snake Game, also called the Worm Game, is a classic computer game. The Snake variety of games originated with the arcade game Hustle, released by Gremlin in 1977 (Wikipedia). The snake moves constantly and the player must navigate the snake around obstacles, including itself, to consume all the items and beat the level.
This demo illustrates the following Milescript features:
- Abstract Classes
- Code Condensation
- Console Logger
- Documentation Generation
- Generic Types
- Interfaces
- Uses Libraries LibDom, LibUtil, LibPixelEngine
|
Use the "W", "A", "S", and "D" keys to move the snake
up, left, down, and right respectively.