danpost wrote...
That is a totally different class you just posted. And it looks like these could move in any direction and could contact any edge of the world. Copy/paste the 'atWorldEdge' method from the other class into this one and change 'getX()<=0' back to 'atWorldEdge()'.
The Fireball class is the one that can just use 'getX()<=0' from what I saw.
