Also allow rect to go out of screen at the bottom
Otherwise some gaps at the very bottom are extremely hard to get.
This commit is contained in:
parent
70f279bd31
commit
6f6d37e4d7
|
|
@ -79,7 +79,7 @@ class GameScreen implements LinearColorAnimator.AnimationListener
|
|||
|
||||
Rectangle birdRect = _bird.getRect();
|
||||
if (_world.checkCollision(_bird.getRect())
|
||||
|| birdRect.getY() + birdRect.getHeight() > TurtleWelt.HEIGHT
|
||||
|| birdRect.getY() > TurtleWelt.HEIGHT
|
||||
|| birdRect.getY() + birdRect.getHeight() < 0)
|
||||
{
|
||||
System.out.print("\n");
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user