diff options
| author | Jakob L. Kreuze <jakob@memeware.net> | 2018-10-25 10:43:46 -0400 |
|---|---|---|
| committer | Jakob L. Kreuze <jakob@memeware.net> | 2018-10-25 10:43:46 -0400 |
| commit | e5053056ad7a223466c8e56df7b63279458d2867 (patch) | |
| tree | 33a5231c1d64b114136596aa75f16e8058b1927c /slimeball.fnl | |
| parent | c60fe418289e4eb3f058fd43bcfdd2ad17c5eac2 (diff) | |
Majority of gameplay is implemented at this point
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 |