|
@@ -21,6 +21,7 @@
|
|
|
|
|
|
class RebusLevelSelector extends Object2D
|
|
class RebusLevelSelector extends Object2D
|
|
{
|
|
{
|
|
|
|
+ /** @type {Object} */
|
|
gridMargins = {
|
|
gridMargins = {
|
|
left: 0,
|
|
left: 0,
|
|
right: 0,
|
|
right: 0,
|
|
@@ -28,6 +29,7 @@ class RebusLevelSelector extends Object2D
|
|
down: 0
|
|
down: 0
|
|
};
|
|
};
|
|
|
|
|
|
|
|
+ /** @type {number} */
|
|
gridCols = 5;
|
|
gridCols = 5;
|
|
|
|
|
|
_setup()
|
|
_setup()
|
|
@@ -64,7 +66,7 @@ class RebusLevelSelector extends Object2D
|
|
this.addChild(this.backButton);
|
|
this.addChild(this.backButton);
|
|
}
|
|
}
|
|
|
|
|
|
- _draw(delta, db)
|
|
|
|
|
|
+ _draw( /** @type {number} */ delta, /** @type {p5.Graphics} */ db)
|
|
{
|
|
{
|
|
background(52);
|
|
background(52);
|
|
|
|
|
|
@@ -76,7 +78,7 @@ class RebusLevelSelector extends Object2D
|
|
db.text("Escolha o nível", 1920 / 2, 200);
|
|
db.text("Escolha o nível", 1920 / 2, 200);
|
|
}
|
|
}
|
|
|
|
|
|
- _onTutorialSelected(levelData)
|
|
|
|
|
|
+ _onTutorialSelected( /** @type {Object} */ levelData)
|
|
{
|
|
{
|
|
var rg = new RebusTutorial("RebusTutorial");
|
|
var rg = new RebusTutorial("RebusTutorial");
|
|
rg.levelData = levelData;
|
|
rg.levelData = levelData;
|
|
@@ -84,7 +86,7 @@ class RebusLevelSelector extends Object2D
|
|
this.queueFree();
|
|
this.queueFree();
|
|
}
|
|
}
|
|
|
|
|
|
- _onLevelSelected(levelData)
|
|
|
|
|
|
+ _onLevelSelected( /** @type {Object} */ levelData)
|
|
{
|
|
{
|
|
var rg = new RebusGame("RebusGame");
|
|
var rg = new RebusGame("RebusGame");
|
|
rg.levelData = levelData;
|
|
rg.levelData = levelData;
|