mirror of
https://github.com/soconnor0919/eceg431.git
synced 2025-12-11 22:54:43 -05:00
project09 - snake game functional!
This commit is contained in:
18
09/Snake/Main.jack
Normal file
18
09/Snake/Main.jack
Normal file
@@ -0,0 +1,18 @@
|
||||
// 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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user