Moved to graphical word bubbles
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user