Skip to content

Commit

Permalink
Add sound horn animation
Browse files Browse the repository at this point in the history
  • Loading branch information
faucomte97 committed Jul 31, 2024
1 parent 034d6ea commit 1fffd4a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions game/static/game/js/animation.js
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,9 @@ ocargo.Animation.prototype.performAnimation = function(animation) {
case 'WAIT':
this.drawing.wait();
break;
case 'SOUND_HORN':
this.drawing.wait();
break;
case 'PUFFUP':
this.scalingModifier.push(2);
break;
Expand Down
1 change: 1 addition & 0 deletions game/static/game/js/model.js
Original file line number Diff line number Diff line change
Expand Up @@ -403,6 +403,7 @@ ocargo.Model.prototype.sound_horn = function() {
cow.queueLeaveAnimation(this, currentNode);
cow.setInactive(this, currentNode);
}
this.moveVan(this.van.getPosition().currentNode, 'SOUND_HORN');
return true;
};

Expand Down

0 comments on commit 1fffd4a

Please sign in to comment.