summaryrefslogtreecommitdiff
path: root/slimeball.fnl
diff options
context:
space:
mode:
authorJakob L. Kreuze <jakob@memeware.net>2018-10-25 10:43:46 -0400
committerJakob L. Kreuze <jakob@memeware.net>2018-10-25 10:43:46 -0400
commite5053056ad7a223466c8e56df7b63279458d2867 (patch)
tree33a5231c1d64b114136596aa75f16e8058b1927c /slimeball.fnl
parentc60fe418289e4eb3f058fd43bcfdd2ad17c5eac2 (diff)
Majority of gameplay is implemented at this point
Diffstat (limited to 'slimeball.fnl')
-rw-r--r--slimeball.fnl8
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