aboutsummaryrefslogtreecommitdiff
path: root/examples/game
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-01-12 16:54:37 -0500
committerBruce Hill <bruce@bruce-hill.com>2025-01-12 16:54:37 -0500
commitc60ea2079fb230213308904cd0966e5481d2d994 (patch)
tree630bcb480bfcdd2dc4aec5ecb4a2f8d1daa6475a /examples/game
parent645d66e0de0f201404d9ad4b210f90c139a247ff (diff)
Fix up examples
Diffstat (limited to 'examples/game')
-rw-r--r--examples/game/world.tm2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/game/world.tm b/examples/game/world.tm
index a28fe987..0a2439c2 100644
--- a/examples/game/world.tm
+++ b/examples/game/world.tm
@@ -73,7 +73,7 @@ struct World(player:@Player, goal:@Box, boxes:@[@Box], dt_accum=0.0, won=no):
func load_map(w:@World, map:Text):
if map:has($/[]/):
- map = map:replace_all({$/[]/: "#", $/@{1..}/: "@", $/ /: " "})
+ map = map:replace_all({$/[]/="#", $/@{1..}/="@", $/ /=" "})
w.boxes = @[:@Box]
box_size := Vec2(50., 50.)
for y,line in map:lines():