Word bubbles

This commit is contained in:
2014-06-12 00:11:08 -07:00
parent 53a15ebaff
commit 8a1d3aaa07

View File

@@ -322,6 +322,11 @@ Light.prototype = Object.create(Phaser.Sprite.prototype);
Light.prototype.constructor = Light; Light.prototype.constructor = Light;
var AISprite = function(game, x, y, spritetype) { var AISprite = function(game, x, y, spritetype) {
this.GOFUCKYERSELF = function() {
this.clear_bubble = true;
console.log("GOFUCKYERSELF fired");
}
this.setWordBubble = function() this.setWordBubble = function()
{ {
if ( this.bubble !== null || this.sprite_group == undefined) { if ( this.bubble !== null || this.sprite_group == undefined) {
@@ -353,12 +358,9 @@ var AISprite = function(game, x, y, spritetype) {
this.bubble_style = {font: '12px Arial Bold', fill: '#ffffff', align: 'center'} this.bubble_style = {font: '12px Arial Bold', fill: '#ffffff', align: 'center'}
this.bubble = game.add.text(this.x, this.y - 20, this.bubble_text, this.bubble_style); this.bubble = game.add.text(this.x, this.y - 20, this.bubble_text, this.bubble_style);
var GOFUCKYERSELF = function() { timer = new Phaser.Timer(game);
this.clear_bubble = true; timerev = timer.add(5000, this.GOFUCKYERSELF, this);
console.log("GOFUCKYERSELF fired"); timer.start()
}
setTimeout(GOFUCKYERSELF, 5000);
} }
this.update = function() this.update = function()