diff options
Diffstat (limited to 'examples/charge.aup')
| -rw-r--r-- | examples/charge.aup | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/charge.aup b/examples/charge.aup index d483b8f..11b6756 100644 --- a/examples/charge.aup +++ b/examples/charge.aup @@ -1,5 +1,5 @@ # Hold Space to charge a jump; gravity and the floor are authored here. -state holding = 0 +state holding = false state charge = 0 state y = 240 state velocity = 0 @@ -10,7 +10,7 @@ view amount = charge on jump.down { if y >= 240 { - holding = 1 + holding = true charge = 0 } } @@ -18,7 +18,7 @@ on jump.down { on jump.up { if holding { velocity = -(160 + charge * 300) - holding = 0 + holding = false charge = 0 } } |
