Moved to graphical word bubbles
This commit is contained in:
@@ -585,12 +585,7 @@ var AISprite = function(game, x, y, spritetype) {
|
|||||||
|
|
||||||
this.update = function()
|
this.update = function()
|
||||||
{
|
{
|
||||||
if ( game.rnd.integerInRange(0, 100) < 95 )
|
|
||||||
return;
|
|
||||||
var running = false;
|
var running = false;
|
||||||
if ( game.rnd.integerInRange(0, 100) > 90 ) {
|
|
||||||
running = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
if ( game.rnd.integerInRange(0, 500) > 450 ) {
|
if ( game.rnd.integerInRange(0, 500) > 450 ) {
|
||||||
this.setWordBubble();
|
this.setWordBubble();
|
||||||
@@ -603,6 +598,12 @@ var AISprite = function(game, x, y, spritetype) {
|
|||||||
this.bubble.y = this.y - (this.bubble.height);
|
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) ) {
|
switch ( game.rnd.integerInRange(0, 4) ) {
|
||||||
case 0: {
|
case 0: {
|
||||||
setSpriteMovement(this, running, 'up');
|
setSpriteMovement(this, running, 'up');
|
||||||
|
|||||||
Reference in New Issue
Block a user