aboutsummaryrefslogtreecommitdiff
path: root/examples/game
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-03-11 18:30:42 -0400
committerBruce Hill <bruce@bruce-hill.com>2025-03-11 18:30:42 -0400
commit904917a2bd3b2e03bf2c399b5bc5f5e357d404a2 (patch)
tree56ebf74a4afa0329ffe414cf3ca2abccdd1b22ad /examples/game
parentde0e565d00e92715d415a9ab09d8f7651bfabc36 (diff)
Update comments
Diffstat (limited to 'examples/game')
-rw-r--r--examples/game/box.tm2
-rw-r--r--examples/game/game.tm2
-rw-r--r--examples/game/world.tm3
3 files changed, 4 insertions, 3 deletions
diff --git a/examples/game/box.tm b/examples/game/box.tm
index b95fd895..dda3dd83 100644
--- a/examples/game/box.tm
+++ b/examples/game/box.tm
@@ -2,6 +2,6 @@
use ./world.tm
use ./raylib.tm
-struct Box(pos:Vector2, size=Vector2(50, 50), color=Color(0x80,0x80,0x80), blocking=yes):
+struct Box(pos:Vector2, size=Vector2(50, 50), color=Color(0x80,0x80,0x80)):
func draw(b:Box):
DrawRectangleV(b.pos, b.size, b.color)
diff --git a/examples/game/game.tm b/examples/game/game.tm
index e0bf7b32..b034f68b 100644
--- a/examples/game/game.tm
+++ b/examples/game/game.tm
@@ -1,4 +1,4 @@
-# This game demo uses Raylib to present a simple
+# This game demo uses Raylib to present a simple maze-type game
use ./raylib.tm
use ./world.tm
diff --git a/examples/game/world.tm b/examples/game/world.tm
index 864bd8d2..58fcd4fa 100644
--- a/examples/game/world.tm
+++ b/examples/game/world.tm
@@ -1,4 +1,5 @@
-
+# This file defines a World object for keeping track of everything, as well
+# as the collision logic.
use ./player.tm
use ./raylib.tm
use ./box.tm