Docs
| BackgoundMusic | text | Sets source of background music of game [Will be only played if Enable music is true]. |
| CurrentScore | number | Sets a current score of Tetris Game. |
| DbName | text | Specifies custom name for shared preferences of Game's database [Can be also accessible using TinyDB component]. |
boolean |
| Sets if music must be played, [Default : true] |
| GameOverMessage | text | Specifies text for Game Over dialog's message [Note : Only Displayed if UseDefaultAlerts() is true. |
| GameOverTitle | text | Specifies text for Game Over dialog [Note : Only Displayed if UseDefaultAlerts() is true. |
| TopScore | number | Sets top score of game's database. |
| TopScoreTagName | text | Specifies custom name for shared preferences tag of Game's top score. |
| TryAgainText | text | Specifies text for Game Over dialog try again button [Note : Only Displayed if UseDefaultAlerts() is true. |
| UseDefaultAlerts | boolean | If enabled, default game dialogs will be displayed [Default Value : true]. |
| ViewLayout | component | Specifies a layout for Tetris Rendering View. |
Adds cell with the specified image and index.
Rendering block preview…
| index | number | |
| image | text |
Creates an instance of Tetris View renderer.
Rendering block preview…
Decreases game's background music by 10%.
Rendering block preview…
Destroys and removes Tetris View from Layout [Note : Recall CreateRenderer() after using this or Error will be raised].
Rendering block preview…
Returns current score of game.
Rendering block preview…
returnType : number
Returns Top Score of Tetris Game.
Rendering block preview…
returnType : number
Increases game's background music by 10%.
Rendering block preview…
Tells if the game is over.
Rendering block preview…
returnType : boolean
Tells if Tetris Renderer is initialized.
Rendering block preview…
returnType : boolean
Moves the upcoming block to bottom, gets stacked on other blocks if any.
Rendering block preview…
Moves the upcoming block to left.
Rendering block preview…
Moves the upcoming block to right.
Rendering block preview…
Mutes/Disables sound of games background music.
Rendering block preview…
Pauses the instance of Tetris Game.
Rendering block preview…
Pauses background music of game.
Rendering block preview…
Redraws Tetris view
Rendering block preview…
Resets top score from game's database.
Rendering block preview…
Resumes the game [Note : Use only after calling PauseGame()].
Rendering block preview…
Resumes background music of game [Note : Only use after calling PauseMusic()].
Rendering block preview…
Rotates the upcoming block clock wise
Rendering block preview…
Starts the games.
Rendering block preview…
Stops background music of game.
Rendering block preview…
Rendering block preview…
Rendering block preview…
Event raised in case of error/exception in Methods.
Rendering block preview…
| error | text |
Event raised when game is over.
Rendering block preview…
| score | number |
Event raised when block is moved to bottom.
Rendering block preview…
Event raised when block is moved to left.
Rendering block preview…
Event raised when block is moved to right.
Rendering block preview…
Event raised after pause() is called.
Rendering block preview…
Event raised after Tetris View is redrawn.
Rendering block preview…
Event raised after resume() is called.
Rendering block preview…
Event raised when block is rotated
Rendering block preview…
Event raised when score is changed.
Rendering block preview…
| score | number |
Event raised after game starts.
Rendering block preview…
Event raised when Top Score of player is changed.
Rendering block preview…
| score | number |
Event raised when default alert of Game over is displayed and user click try again button [Note : Only Displayed if UseDefaultAlerts() is true].
Rendering block preview…
Releases
Tetris (23).aix
30 KB
Feb 9, 2022
AIX package
Release notes not provided.