Moved to graphical word bubbles

This commit is contained in:
2014-06-12 02:05:01 -07:00
parent 79224b4de7
commit faed63c75b

View File

@@ -585,12 +585,7 @@ var AISprite = function(game, x, y, spritetype) {
this.update = function()
{
if ( game.rnd.integerInRange(0, 100) < 95 )
return;
var running = false;
if ( game.rnd.integerInRange(0, 100) > 90 ) {
running = true;
}
if ( game.rnd.integerInRange(0, 500) > 450 ) {
this.setWordBubble();
@@ -603,6 +598,12 @@ var AISprite = function(game, x, y, spritetype) {
this.bubble.y = this.y - (this.bubble.height);
}
if ( game.rnd.integerInRange(0, 100) < 95 )
return;
if ( game.rnd.integerInRange(0, 100) > 90 ) {
running = true;
}
switch ( game.rnd.integerInRange(0, 4) ) {
case 0: {
setSpriteMovement(this, running, 'up');