Untitled

mail@pastecode.io avatar
unknown
plain_text
a month ago
509 B
0
Indexable
Never
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);
        
        
        }
        
    }        
Leave a Comment