core: add Snake using Typescript #7

Merged
Trianta merged 35 commits from snake into main 2024-11-09 01:26:09 -06:00
Showing only changes of commit 2916b4e127 - Show all commits

View File

@ -91,6 +91,8 @@ class SnakeCore {
} }
while (this.body.length > 0) while (this.body.length > 0)
this.body.pop(); this.body.pop();
while (g_snakebot.path.length > 0)
g_snakebot.path.pop();
this.startRandom(); this.startRandom();
this.foodRegen(); this.foodRegen();
this.draw(); this.draw();