Snake game, customizable: Color, size, separation, speed, radius and background.
Functions:
InitializeGame
Component arrangement
int speed
int squareSize
int cornerRadius
int backgroundColor
StartGame
PauseGame
SetDifficulty
String difficulty
"easy", "medium", "hard".
SetHeadColor
SetBodyColor
SetFoodColor
SetGameOverTextColor
SetSeparation
Events:
GameOver
ScoreChanged
Screenshoots:
aia project
SnakeGameTest.aia (23.9 KB)
Extension:
JoeDevSnakeGame.aix (19.3 KB)
Thanks.
4 Likes
TIMAI2
August 6, 2024, 2:43pm
2
Please provide example blocks, or an aia project, to show how the less obvious properties are set, and with what values.
1 Like
this extension have a custom canvas or some library java graphics ?
1 Like
this extension have a custom canvas or some library java graphics ?
A webview with JavaScript code,perhaps
1 Like
Ready, I have uploaded the aia project. @TIMAI2
It does not have any library, it does not need a web view, just an Arrangement, the game is offline, it is pure java code.
@CanalDTodoUnPoco_PC
@marco_tanzi
2 Likes
Taifun
August 7, 2024, 1:31am
6
did you write that java code yourself or did you find that code somewhere in the internet? In case of the latter please provide a link to the source and credit its author
Taifun
No libraries, no other people involved.
I think that everything can be done without libraries, although it's more difficult, but not impossible.
It's difficult for me but I like it.
1 Like