diff --git a/chi-tor.wren b/chi-tor.wren
index f70273d..afe70a5 100644
--- a/chi-tor.wren
+++ b/chi-tor.wren
@@ -520,6 +520,13 @@ class Game is TIC{
TIC.print("GOAL: 12", 121, 1, Color.black, true)
TIC.print("GOAL: 12", 120, 0, Color.white, true)
}
+
+ if (Game.state == Game.gameover) {
+ var h = 40
+ TIC.rect(0, (H - h) / 2, W, h, Color.red)
+ TIC.print("GAME OVER", 70, H/2-10, Color.white, true, 2)
+ TIC.print("press Z to restart", 90, H/2+8, Color.white, false, 1, true)
+ }
}
update() {
@@ -585,7 +592,7 @@ class Game is TIC{
}
draw() {
- TIC.cls(0)
+ TIC.cls(Color.black)
if (Game.state == Game.title) {
_world.draw()
TIC.print("Chi-Tor", W/4, H/4, Color.white, false, 3)
@@ -680,21 +687,23 @@ class Game is TIC{
//
//
//