aboutsummaryrefslogtreecommitdiff
path: root/examples/game/game.tm
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-09-01 16:44:58 -0400
committerBruce Hill <bruce@bruce-hill.com>2025-09-01 16:44:58 -0400
commited50c5fefb8892ad2ba5262491669f268ddbd436 (patch)
treee93a6a8b7e963c37a001691751d6845d10e0cbf8 /examples/game/game.tm
parent02a99d24a310c04622a875dcf4b0c6fd2de71332 (diff)
Overhaul code to stop keeping examples and libraries in the same repo,
but instead spin each out into its own repo.
Diffstat (limited to 'examples/game/game.tm')
-rw-r--r--examples/game/game.tm29
1 files changed, 0 insertions, 29 deletions
diff --git a/examples/game/game.tm b/examples/game/game.tm
deleted file mode 100644
index f82e4f40..00000000
--- a/examples/game/game.tm
+++ /dev/null
@@ -1,29 +0,0 @@
-# This game demo uses Raylib to present a simple maze-type game
-use ./raylib.tm
-use ./world.tm
-
-func main(map=(./map.txt))
- InitWindow(1600, 900, CString("raylib [core] example - 2d camera"))
-
- map_contents := map.read() or exit("Could not find the game map: $map")
-
- world := @World(
- player=@Player(Vector2(0,0), Vector2(0,0)),
- goal=@Box(Vector2(0,0), Vector2(50,50), color=Color(0x10,0xa0,0x10)),
- boxes=@[],
- )
- world.load_map(map_contents)
-
- SetTargetFPS(60)
-
- while not WindowShouldClose()
- dt := GetFrameTime()
- world.update(dt)
-
- BeginDrawing()
- ClearBackground(Color(0xCC, 0xCC, 0xCC, 0xFF))
- world.draw()
- EndDrawing()
-
- CloseWindow()
-