aboutsummaryrefslogtreecommitdiff
path: root/examples/game/world.tm
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-04-05 01:54:39 -0400
committerBruce Hill <bruce@bruce-hill.com>2025-04-05 01:54:39 -0400
commite2ddd23b55bd51bd382ebc9b8d3094632472bf67 (patch)
treeb1fb7dcff42fad4fdc9e6a6393989ee980d5757f /examples/game/world.tm
parentcb6a5f264c857691cf3db3c9d8e12375e4dc75fd (diff)
Fix some of the constructor logic
Diffstat (limited to 'examples/game/world.tm')
-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 8b721c5c..76acac6b 100644
--- a/examples/game/world.tm
+++ b/examples/game/world.tm
@@ -38,7 +38,7 @@ func solve_overlap(a_pos:Vector2, a_size:Vector2, b_pos:Vector2, b_size:Vector2
return Vector2(0, 0)
struct World(player:@Player, goal:@Box, boxes:@[@Box], dt_accum=Num32(0.0), won=no):
- DT := (Num32(1.)/Num32(60.))!
+ DT := (Num32(1.)/Num32(60.))
STIFFNESS := Num32(0.3)
func update(w:@World, dt:Num32):