Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ready = function(game) {
- this.game = game;
- };
- ready.prototype = {
- preload: function() {
- game.load.image("readyButton", "assets/readyButton.png");
- },
- create: function() {
- this.readyButton = game.add.button(game.world.centerX, game.world.centerY, "readyButton", this.isReady(), this);
- this.readyButton.anchor.setTo(0.5, 0.5);
- this.readyButton.inputEnabled = true;
- },
- update: function() {
- this.buttonActive();
- },
- isReady: function() {
- if(this.readyButt)
- game.global.ready = true;
- }
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement