aboutsummaryrefslogtreecommitdiff
path: root/examples/game
diff options
context:
space:
mode:
Diffstat (limited to 'examples/game')
-rw-r--r--examples/game/game.tm2
-rw-r--r--examples/game/world.tm2
2 files changed, 2 insertions, 2 deletions
diff --git a/examples/game/game.tm b/examples/game/game.tm
index b034f68b..36ef14ff 100644
--- a/examples/game/game.tm
+++ b/examples/game/game.tm
@@ -10,7 +10,7 @@ func main(map=(./map.txt)):
world := @World(
player=@Player(Vector2(0,0), Vector2(0,0)),
goal=@Box(Vector2(0,0), Vector2(50,50), color=Color(0x10,0xa0,0x10)),
- boxes=@[:@Box],
+ boxes=@[],
)
world:load_map(map_contents)
diff --git a/examples/game/world.tm b/examples/game/world.tm
index 809f1f80..8b721c5c 100644
--- a/examples/game/world.tm
+++ b/examples/game/world.tm
@@ -70,7 +70,7 @@ struct World(player:@Player, goal:@Box, boxes:@[@Box], dt_accum=Num32(0.0), won=
func load_map(w:@World, map:Text):
if map:has("[]"):
map = map:translate({"[]"="#", "@ "="@", " "=" "})
- w.boxes = @[:@Box]
+ w.boxes = @[]
box_size := Vector2(50., 50.)
for y,line in map:lines():
for x,cell in line:split():