diff options
| -rw-r--r-- | examples/game/box.tm | 2 | ||||
| -rw-r--r-- | examples/game/game.tm | 2 | ||||
| -rw-r--r-- | examples/game/world.tm | 3 |
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 |
