InitializeGame
Initialize the Snake Game
StartGame
Start the Snake Game
PauseGame
Pause the Snake Game
ResetGame
Reset the Snake Game
Speed
Set the game speed in milliseconds (lower = faster)
HeadColor
Set the color of the snake head
BodyColor
Set the color of the snake body
FoodColor
Set the color of the food
GameOverTextColor
Set the color of the Game Over text
Separation
Set the separation between squares
MoveLeft
Move the snake to the left
MoveRight
Move the snake to the right
MoveUp
Move the snake up
MoveDown
Move the snake down
IsInitialized
Returns true if the game has been initialized
IsPaused
Returns true if the game is currently paused
IsGameOver
Returns true if the game is over
CurrentScore
Returns the current score
CurrentSpeed
Returns the current speed/difficulty level in milliseconds
GamePaused
Triggered when the game is paused
GameResumed
Triggered when the game is resumed
GameOver
Triggered when the game is over
ScoreChanged
Triggered when the score changes
Update:
-
Before adding this version (v1.1), you must remove the previous version if you have it. If not, you can continue.
- If you don't remove the previous version, there will be some errors, as the package name has been updated. The previous version was created with Niotron; this version (v1.1) is created with Fast.
-
Fixed an issue that prevented the snake from colliding when hitting the right and left edges.
-
Changed the SetDifficulty function to Speed. Instead of having default speeds, the user can now set any desired speed.
-
Added new functions, events, and properties.
v1.1 Oct 04, 2025.
SnakeGame.aia (97.7 KB)
joejsanz.joedevsnakegame.aix (15.5 KB)
JDK: 11
Minimum API Level: 21
Updated On: 2025-10-04T07:00:00Z
Built using: FAST-CLI v5.2.0-premium
Thanks.