From d6faf9716c167906c45deb099808d4d568e34c0d Mon Sep 17 00:00:00 2001 From: ubq323 Date: Mon, 2 May 2022 01:05:25 +0100 Subject: idfk --- src/player.fnl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/player.fnl') diff --git a/src/player.fnl b/src/player.fnl index 68d4f27..9ba457a 100644 --- a/src/player.fnl +++ b/src/player.fnl @@ -5,7 +5,6 @@ (set C.__index C) (fn C.update [self dt ?world] - (print ((. (require :vendor.fennel) :view) self)) (let [speed (if (love.keyboard.isScancodeDown :lshift :rshift) SPRINT-SPEED SPEED) up (if (love.keyboard.isScancodeDown :w :up) 1 0) @@ -16,7 +15,7 @@ vx (- right left) sf (math.sqrt (+ (* vx vx) (* vy vy))) world (if ?world ?world - {:move (fn move [_2 tx ty] (values tx ty))})] + {:move (fn move [_1 _2 tx ty] (values tx ty))})] (when (not= sf 0) (let [vx (/ vx sf) vy (/ vy sf) -- cgit v1.2.3