aboutsummaryrefslogtreecommitdiff
path: root/examples/game/player.tm
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-10-27 20:49:03 -0400
committerBruce Hill <bruce@bruce-hill.com>2024-10-27 20:49:03 -0400
commitefb7be5bc4876c3113041848fb6d901a4f3ab4e9 (patch)
treea5f4fec3397a529b01fe5ec1256db5349e3f6016 /examples/game/player.tm
parent33f1af8e7165bf137ce1be099d9a63964c409e8c (diff)
Fix up examples to no longer use '&'
Diffstat (limited to 'examples/game/player.tm')
-rw-r--r--examples/game/player.tm2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/game/player.tm b/examples/game/player.tm
index 5909ae63..91f7a173 100644
--- a/examples/game/player.tm
+++ b/examples/game/player.tm
@@ -12,7 +12,7 @@ struct Player(pos,prev_pos:Vec2):
FRICTION := 0.99
SIZE := Vec2(30, 30)
- func update(p:&Player):
+ func update(p:@Player):
target_x := inline C:Num {
(Num_t)((IsKeyDown(KEY_A) ? -1 : 0) + (IsKeyDown(KEY_D) ? 1 : 0))
}