forgot to test the message
authorBrendan Hansen <brendan.f.hansen@gmail.com>
Wed, 24 Nov 2021 21:05:36 +0000 (15:05 -0600)
committerBrendan Hansen <brendan.f.hansen@gmail.com>
Wed, 24 Nov 2021 21:05:36 +0000 (15:05 -0600)
tests/snake.onyx

index 23788e3fec089ddab7813bd7ad652538ec4aaf8a..7a3d48c6db8741469822cf11d9bfacba2318259b 100644 (file)
@@ -173,7 +173,8 @@ draw :: () {
 
             message := "You Lost!";
             message_width := hb.graphics.getTextWidth(message);
-            hb.graphics.print(title, (~~ww - message_width) / 2, 100);
+            hb.graphics.setColor(1, 1, 1);
+            hb.graphics.print(message, (~~ww - message_width) / 2, 100);
         }
     }
 }