added TODO in outer-bounds checking in Snake

This commit is contained in:
delvh 2020-04-03 10:40:56 +02:00 committed by GitHub
parent 8a08e58e84
commit a5142f285d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -102,6 +102,7 @@ public class Snake implements Updateable {
// case if snake is outside of the screen or touches itself
if (checkSelfCollision()) gameOver();
// TODO: the game bounds checking below appears to work on Windows, however throws a NullPointerException on Linux/UNIX systems
// if (!Main.getGame().getBounds().contains(tiles.get(0))) gameOver();
// case if snake eats food