Compare commits

...

2 Commits

Author SHA1 Message Date
Asecave
758c944ec6 Merge branch 'master' of https://git.ngb.schule/Tim/Zoelda 2021-06-23 23:11:29 +02:00
Asecave
38e9266696 code format 2021-06-23 23:11:17 +02:00
2 changed files with 9 additions and 7 deletions

View File

@@ -1,5 +1,6 @@
package main.entities;
import ea.Farbe;
import ea.Taste;
import main.Main;
import main.SheetLoader;

View File

@@ -16,7 +16,7 @@ public class Snake extends LivingEntity {
posX = 9f;
posY = 9f;
accelleration = 0.008f;
accelleration = 0.006f;
spriteOffsetY = -0.6f;
width = 0.65f;
height = 0.8f;
@@ -49,7 +49,8 @@ public class Snake extends LivingEntity {
if (actionFigur.aktuellesVerhalten().equals("walk")) {
zustandSetzen("lost_sight");
}
if (actionFigur.aktuellesVerhalten().equals("lost_sight") && actionFigur.aktuelleFigur().aktuellesBild() == actionFigur.aktuelleFigur().animation().length - 1) {
if (actionFigur.aktuellesVerhalten().equals("lost_sight")
&& actionFigur.aktuelleFigur().aktuellesBild() == actionFigur.aktuelleFigur().animation().length - 1) {
actionFigur.aktuelleFigur().animationsBildSetzen(0);
zustandSetzen("idle");
}