Snake Game. Customizable.

Snake game, customizable: Color, size, separation, speed, radius and background.

1722931500773


Functions:

component_method (4)

  1. InitializeGame
    • Component arrangement
    • int speed
    • int squareSize
    • int cornerRadius
    • int backgroundColor

component_method (13)

  1. StartGame

component_method (5)

  1. PauseGame

component_method (7)

  1. SetDifficulty
    • String difficulty "easy", "medium", "hard".

component_method (11)

  1. SetHeadColor
    • int color

component_method (6)

  1. SetBodyColor
    • int color

component_method (8)

  1. SetFoodColor
    • int color

  1. SetGameOverTextColor
    • int color

component_method (12)

  1. SetSeparation
    • int separation

Events:

component_event (5)

  1. GameOver

component_event (4)

  1. ScoreChanged
    • int score

Screenshoots:


aia project

SnakeGameTest.aia (23.9 KB)

Extension:

JoeDevSnakeGame.aix (19.3 KB)


Thanks.

4 Likes

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

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