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
Specifications
Package: io.th.colorswitch.colorswitch
Size: 28.07 KB
Minimum API Level: 7
Updated On: 2025-04-02T18:30:00Z
Built & documented using: FAST v2.8.1
io.th.colorswitch.colorswitch.aix (28.1 KB)
colorswich.aia (30.0 KB)
More Info Github
ScreenShots
Demo
Blocks
Methods:
ColorSwitch has total 12 methods.
StartGame
Start or restart the game. Call this method to begin playing.
HandleTouch
Handle touch events - call this method when the Canvas is touched
Score
Get the current score
IsRunning
Check if the game is running
IsGameOver
Check if the game is over
PauseGame
Pause the game
ResumeGame
Resume the game
IsPaused
Check if the game is paused
PlayerY
Get the player's current Y position
CameraY
Get the camera's current Y position
Difficulty
Set game difficulty (speed multiplier)
Parameter | Type |
---|---|
difficulty | number |
ResetHighScore
Reset high score
Setters:
ColorSwitch has total 3 setter properties.
GameCanvas
Set the canvas Component for drawing the game
- Input type:
component
BackgroundColor
Set the background color for the game
- Input type:
text
GameSpeed
Property for GameSpeed
- Input type:
number
Thanks
TechHamara