diff --git a/registration-system/view/signups/game1/chars/bernd.svg b/registration-system/view/signups/game1/chars/bernd.svg index 5ac4607d7966fc9473dffc7ef46b6317f79e8850..5a6ebad12b4228998736a9a0de41aa469d2f6d01 100644 Binary files a/registration-system/view/signups/game1/chars/bernd.svg and b/registration-system/view/signups/game1/chars/bernd.svg differ diff --git a/registration-system/view/signups/game1/js/character.js b/registration-system/view/signups/game1/js/character.js index 32f3cfe32debbc53b239ebf25d072fbd33f6066d..62d0ed00d595668f687bbe2cc72e0e4d8f0e5d2f 100644 --- a/registration-system/view/signups/game1/js/character.js +++ b/registration-system/view/signups/game1/js/character.js @@ -71,6 +71,8 @@ Char.prototype.animate = function() { this.lastPosition = this.translation.slice(); var speed = Math.max(Math.abs(xSpeed), Math.abs(ySpeed)); // estimate + var postfix = Environment.progress.inventory_ruestung ? "_r" : ""; + var direction = this.lastDirection; if (speed > g_smallValue) { if (Math.abs(xSpeed) >= Math.abs(ySpeed)) @@ -92,11 +94,12 @@ Char.prototype.animate = function() { if (direction != this.lastDirection) { this.lastDirection = direction; this.currentFrame = 0; - this.frames = this.animations[Char.directionToName[direction]]; + this.frames = this.animations[Char.directionToName[direction]+postfix]; } + // if no current frames available show fallback downwards frame if (!this.frames || this.frames.length == 0) - this.frames = this.animations['DOWN']; + this.frames = this.animations['DOWN'+postfix]; // if everything fails.. if (!this.frames || this.frames.length == 0) return;