[FREE] Color-Switch A Color Switch game component that creates an engaging endless runner game

Color-Switch

Ai2 Color Switch game Extension that creates an engaging endless runner game.

šŸ§© ColorSwitch

An extension for MIT App Inventor 2.
A Color Switch game component that creates an engaging endless runner game. The player controls a ball that must match colors with obstacles to pass through them. Collect stars to increase score and switch colors to progress. Features include customizable difficulty, pause/resume functionality, and various obstacle types.
This Extension is developed by th using Fast.
fun way to expand.
Telegram | GitHub
Blogger | YouTube
Find More Extension
Terms & Conditions

:memo: Specifications


:package: Package: io.th.colorswitch.colorswitch
:floppy_disk: Size: 28.07 KB
:iphone: Minimum API Level: 7
:date: Updated On: 2025-04-02T18:30:00Z
:computer: Built & documented using: FAST v2.8.1
io.th.colorswitch.colorswitch.aix (28.1 KB)
colorswich.aia (30.0 KB)
:jigsaw: More Info Github

ScreenShots

photo_2025-04-03_18-49-51
photo_2025-04-03_18-50-07


Demo

blocks

cd5cc140-26d2-40f6-92c9-84ec06b069c1.gif

15413532-2c35-4b00-9075-4bac1b1f8e1b.gif

Blocks

BackgroundColor_Set_Property
HighScore_Get_Property
GameSpeed_Set_Property
GameCanvas_Set_Property


Difficulty_Method
HandleTouch_Method
PauseGame_Method
ResetHighScore_Method
ResumeGame_Method
StartGame_Method


IsPaused_Method
IsGameOver_Method
CameraY_Method
Score_Method
PlayerY_Method
IsRunning_Method

Methods:

ColorSwitch has total 12 methods.

:purple_heart: StartGame

Start or restart the game. Call this method to begin playing.

:purple_heart: HandleTouch

Handle touch events - call this method when the Canvas is touched

:purple_heart: Score

Get the current score

:purple_heart: IsRunning

Check if the game is running

:purple_heart: IsGameOver

Check if the game is over

:purple_heart: PauseGame

Pause the game

:purple_heart: ResumeGame

Resume the game

:purple_heart: IsPaused

Check if the game is paused

:purple_heart: PlayerY

Get the player's current Y position

:purple_heart: CameraY

Get the camera's current Y position

:purple_heart: Difficulty

Set game difficulty (speed multiplier)

Parameter Type
difficulty number

:purple_heart: ResetHighScore

Reset high score

Setters:

ColorSwitch has total 3 setter properties.

:green_heart: GameCanvas

Set the canvas Component for drawing the game

  • Input type: component

:green_heart: BackgroundColor

Set the background color for the game

  • Input type: text

:green_heart: GameSpeed

Property for GameSpeed

  • Input type: number

Thanks

TechHamara

2 Likes