diff options
Diffstat (limited to 'examples/game/world.tm')
| -rw-r--r-- | examples/game/world.tm | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/game/world.tm b/examples/game/world.tm index d921841b..6208d1c5 100644 --- a/examples/game/world.tm +++ b/examples/game/world.tm @@ -84,6 +84,7 @@ struct World(player:@Player, goal:@Box, boxes:[@Box], dt_accum=0.0, won=no): (&w.boxes):insert(box) else if cell == "@": pos := Vec2((Num(x)-1) * box_size.x, (Num(y)-1) * box_size.y) + pos += box_size/2. - Player.SIZE/2. w.player = @Player(pos,pos) else if cell == "?": pos := Vec2((Num(x)-1) * box_size.x, (Num(y)-1) * box_size.y) |
