From a5142f285ded8baa4dffa5bc5ace131e180ce95e Mon Sep 17 00:00:00 2001 From: delvh Date: Fri, 3 Apr 2020 10:40:56 +0200 Subject: [PATCH] added TODO in outer-bounds checking in Snake --- src/main/dev/lh/Snake.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/dev/lh/Snake.java b/src/main/dev/lh/Snake.java index 6d26e23..a09479f 100755 --- a/src/main/dev/lh/Snake.java +++ b/src/main/dev/lh/Snake.java @@ -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