diff options
Diffstat (limited to 'slimeball.fnl')
| -rw-r--r-- | slimeball.fnl | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/slimeball.fnl b/slimeball.fnl index 7243aba..058763e 100644 --- a/slimeball.fnl +++ b/slimeball.fnl @@ -51,8 +51,12 @@ (- player-x player-width)) :y-pos player-y - :x-vel (if (= :right orientation) 128 (- 128)) - :y-vel 0 + :x-vel (if (. player :action :sliming-up) + 0 + (if (= :right orientation) 128 (- 128))) + :y-vel (if (. player :action :sliming-up) + (- 128) + 0) :next-position next-position :update update-slimeball |