-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added new controllers Removed AdMob banners from game screen Removed AdMob banners from game over screen
- Loading branch information
1 parent
a80ffff
commit 4870ec2
Showing
13 changed files
with
105 additions
and
55 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
define(['phaser'], function (Phaser) { | ||
'use strict'; | ||
|
||
function Help (game) { | ||
// use init method! | ||
} | ||
|
||
Help.prototype.constructor = Help; | ||
|
||
Help.prototype.create = function () { | ||
// step counter | ||
this._step = 1; | ||
|
||
// page 01 | ||
this.game.add.sprite(0, 0, 'how_to_p01'); | ||
|
||
// page 02 | ||
this._page02 = this.game.add.sprite(this.game.width, 0, 'how_to_p02'); | ||
|
||
// add text label | ||
var label = 'TAP para continuar'; | ||
var labelConf = { font: '30px Lucida Console', fill: '#fff', align: 'center' }; | ||
this._label = this.game.add.text(this.game.camera.width / 2, this.game.camera.height - 200, label, labelConf); | ||
this._label.anchor.set(0.5); | ||
|
||
// add the blinking text | ||
this.game.add.tween(this._label).to({ alpha: 0 }, 1000, Phaser.Easing.Linear.None, true, 0, 500, true); | ||
|
||
// tap to next page | ||
this.input.onTap.add(function () { | ||
switch (this._step) { | ||
case 1: | ||
this.game.add.tween(this._page02).to({ x: 0 }, 100, Phaser.Easing.Linear.None, true); | ||
this._step++; | ||
break; | ||
|
||
case 2: | ||
this.game.state.start('Game'); | ||
break; | ||
} | ||
}, this); | ||
}; | ||
|
||
return Help; | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters