|
@@ -27,9 +27,8 @@ export default class MatchThreeState {
|
|
init(scaledCanvas) {
|
|
init(scaledCanvas) {
|
|
this.canvasBounds = scaledCanvas.bounds
|
|
this.canvasBounds = scaledCanvas.bounds
|
|
|
|
|
|
- this.boardSize = { x: 7, y: 7 }
|
|
|
|
this.buttonCount = 6
|
|
this.buttonCount = 6
|
|
- this.board.init(scaledCanvas)
|
|
|
|
|
|
+
|
|
}
|
|
}
|
|
|
|
|
|
enter() {
|
|
enter() {
|
|
@@ -53,6 +52,7 @@ export default class MatchThreeState {
|
|
this.camera.position.x = 0
|
|
this.camera.position.x = 0
|
|
this.camera.position.y = 0
|
|
this.camera.position.y = 0
|
|
|
|
|
|
|
|
+ this.board.init(this.canvasBounds)
|
|
this.alpha = 1
|
|
this.alpha = 1
|
|
AsyncTween.create(this, { alpha: 0 }, 500, Easing.Quadratic.EaseOut)
|
|
AsyncTween.create(this, { alpha: 0 }, 500, Easing.Quadratic.EaseOut)
|
|
}
|
|
}
|