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
/* | |
Code of "Dark Bleu" game from www.lessmilk.com/10/ | |
Made with Phaser Javascript framework | |
Note: the is the main source code. I skiped the boring part (preloading the assets, and the menus) | |
*/ | |
/* | |
Programming and art made by www.lessmilk.com | |
You can freely look at the code below, |
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
var game = new Phaser.Game(400, 490, Phaser.AUTO, 'game_div'); | |
var game_state = {}; | |
game_state.main = function() { }; | |
game_state.main.prototype = { | |
preload: function() { | |
this.game.stage.backgroundColor = '#71c5cf'; | |
this.game.load.image('bird', 'assets/bird.png'); |