Fix syntax error and formatting.

This commit is contained in:
Phil Hagelberg 2019-09-22 15:38:01 -07:00
parent 7772d40b2e
commit 7e2ba3daa8

View file

@ -13,7 +13,7 @@
(mode.activate ...))) (mode.activate ...)))
(fn love.load [] (fn love.load []
(: canvas :setFilter "nearest" "nearest") (canvas:setFilter "nearest" "nearest")
(repl.start)) (repl.start))
(fn love.draw [] (fn love.draw []
@ -31,8 +31,7 @@
(mode.update dt set-mode)) (mode.update dt set-mode))
(fn love.keypressed [key] (fn love.keypressed [key]
(if (if (and (love.keyboard.isDown "lctrl" "rctrl" "capslock") (= key "q"))
(and (love.keyboard.isDown "lctrl" "rctrl" "capslock") (= key "q"))
(love.event.quit) (love.event.quit)
;; add what each keypress should do in each mode ;; add what each keypress should do in each mode
(mode.keypressed key set-mode))) (mode.keypressed key set-mode)))