diff options
Diffstat (limited to 'examples/game/world.tm')
| -rw-r--r-- | examples/game/world.tm | 2 |
1 files changed, 1 insertions, 1 deletions
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(): |
