diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-03-10 13:42:57 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-03-10 13:42:57 -0400 |
| commit | a6d48e46c122594aa5d877c9f902484339103ea9 (patch) | |
| tree | 9a4cb03af187f4f7742b8933a7c0069e17b4ddd1 /examples/game/world.tm | |
| parent | 839abfc29425873f5610467b8facac44ad784e19 (diff) | |
Fixes for examples
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 0a2439c2..f1b65a87 100644 --- a/examples/game/world.tm +++ b/examples/game/world.tm @@ -58,7 +58,7 @@ struct World(player:@Player, goal:@Box, boxes:@[@Box], dt_accum=0.0, won=no): # Resolve player overlapping with any boxes: for i in 3: for b in w.boxes: - w.player.pos += STIFFNESS * solve_overlap(w.player.pos, Player.SIZE, b.pos, b.size) + w.player.pos += World.STIFFNESS * solve_overlap(w.player.pos, Player.SIZE, b.pos, b.size) func draw(w:@World): for b in w.boxes: |
