Word bubbles
This commit is contained in:
@@ -322,6 +322,11 @@ Light.prototype = Object.create(Phaser.Sprite.prototype);
|
||||
Light.prototype.constructor = Light;
|
||||
|
||||
var AISprite = function(game, x, y, spritetype) {
|
||||
this.GOFUCKYERSELF = function() {
|
||||
this.clear_bubble = true;
|
||||
console.log("GOFUCKYERSELF fired");
|
||||
}
|
||||
|
||||
this.setWordBubble = function()
|
||||
{
|
||||
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 = game.add.text(this.x, this.y - 20, this.bubble_text, this.bubble_style);
|
||||
|
||||
var GOFUCKYERSELF = function() {
|
||||
this.clear_bubble = true;
|
||||
console.log("GOFUCKYERSELF fired");
|
||||
}
|
||||
|
||||
setTimeout(GOFUCKYERSELF, 5000);
|
||||
timer = new Phaser.Timer(game);
|
||||
timerev = timer.add(5000, this.GOFUCKYERSELF, this);
|
||||
timer.start()
|
||||
}
|
||||
|
||||
this.update = function()
|
||||
|
||||
Reference in New Issue
Block a user