mirror of
https://github.com/soconnor0919/eceg431.git
synced 2025-12-12 07:04:43 -05:00
19 lines
409 B
Plaintext
19 lines
409 B
Plaintext
// Snake Game - Entry Point
|
|
// A classic Snake implementation with growing mechanics,
|
|
// collision detection, scoring, and smooth gameplay
|
|
class Main {
|
|
// program entry point
|
|
function void main() {
|
|
var SnakeGame game;
|
|
|
|
// create and start game
|
|
let game = SnakeGame.new();
|
|
do game.run();
|
|
|
|
// cleanup when done
|
|
do game.dispose();
|
|
|
|
return;
|
|
}
|
|
}
|