diff options
author | Thomas White <taw@physics.org> | 2020-09-20 17:03:41 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2020-09-20 17:03:41 +0200 |
commit | ab9c5014cebdde8a4a933342c7970c7d12ab1da4 (patch) | |
tree | 250ad4f6df822db416a3a9316924dc7aa2b71c3e /heyllama.scm | |
parent | 3c178a12f82e139ee48da3c408301040dae1e6b3 (diff) |
Revert frame rate independence
I'll come back to this later. It's hard.
Diffstat (limited to 'heyllama.scm')
-rw-r--r-- | heyllama.scm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/heyllama.scm b/heyllama.scm index 6a71a0d..3150b6b 100644 --- a/heyllama.scm +++ b/heyllama.scm @@ -142,7 +142,7 @@ (when (key-pressed? 'right) (set-face-direction! llama 1) - (set! x-vel 1.0) + (set! x-vel 4.0) (set-animation-step! llama (floor-remainder (+ (get-animation-step llama) -1) @@ -150,14 +150,14 @@ (when (key-pressed? 'left) (set-face-direction! llama -1) - (set! x-vel -1.0) + (set! x-vel -4.0) (set-animation-step! llama (floor-remainder (- (get-animation-step llama) 1) 16))) (vec2-add! (get-pos llama) - #v((* x-vel tstep 0.2) 0.0)) + #v(x-vel 0.0)) (grid-move grid 'llama |