aboutsummaryrefslogtreecommitdiff
path: root/examples/game/game.tm
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-09-01 17:39:20 -0400
committerBruce Hill <bruce@bruce-hill.com>2025-09-01 17:39:20 -0400
commit2538b1b7461f9b06d6a6f43acd5609d916b1addc (patch)
tree061efdfc54351b1c644f1422e4f2c00bfefb1235 /examples/game/game.tm
parentd6d3f5711de85ab1c21f515b9d125d316d853c92 (diff)
parentadc2d81b5683e611c5f3289be6157d4519a60632 (diff)
Merge branch 'main' into formatter
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()
-