Compare commits
2 Commits
75b28bbb11
...
758c944ec6
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
758c944ec6 | ||
|
|
38e9266696 |
@@ -1,5 +1,6 @@
|
|||||||
package main.entities;
|
package main.entities;
|
||||||
|
|
||||||
|
import ea.Farbe;
|
||||||
import ea.Taste;
|
import ea.Taste;
|
||||||
import main.Main;
|
import main.Main;
|
||||||
import main.SheetLoader;
|
import main.SheetLoader;
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ public class Snake extends LivingEntity {
|
|||||||
|
|
||||||
posX = 9f;
|
posX = 9f;
|
||||||
posY = 9f;
|
posY = 9f;
|
||||||
accelleration = 0.008f;
|
accelleration = 0.006f;
|
||||||
spriteOffsetY = -0.6f;
|
spriteOffsetY = -0.6f;
|
||||||
width = 0.65f;
|
width = 0.65f;
|
||||||
height = 0.8f;
|
height = 0.8f;
|
||||||
@@ -49,7 +49,8 @@ public class Snake extends LivingEntity {
|
|||||||
if (actionFigur.aktuellesVerhalten().equals("walk")) {
|
if (actionFigur.aktuellesVerhalten().equals("walk")) {
|
||||||
zustandSetzen("lost_sight");
|
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);
|
actionFigur.aktuelleFigur().animationsBildSetzen(0);
|
||||||
zustandSetzen("idle");
|
zustandSetzen("idle");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user