Untitled
unknown
plain_text
2 years ago
509 B
14
Indexable
public void Kollision(){
Actor s = getOneIntersectingObject(gegner.class);
Actor t = getOneIntersectingObject(gegner2.class);
Actor d = getOneIntersectingObject(oger_boss.class);
if(s != null || t != null || d !=null){
setLocation(posX = 420, posY = 600);
}
if (d!=null){
Planet.lifeCount.setValue(Planet.lifeCount.getValue()-1);
}
} Editor is loading...
Leave a Comment