From 888619ec34e04f3d330c687bf8b0ea55f92a8bcb Mon Sep 17 00:00:00 2001 From: equa Date: Sat, 24 Apr 2021 13:26:17 -0500 Subject: clean up --- lib/main.fnl | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) (limited to 'lib/main.fnl') diff --git a/lib/main.fnl b/lib/main.fnl index b657d94..90048d5 100644 --- a/lib/main.fnl +++ b/lib/main.fnl @@ -4,8 +4,6 @@ (local game (require :lib.game)) (local music (require :lib.music)) (local font (require :lib.font)) -(local profi (require :vendor.ProFi)) -(local profi? false) ;; i am thinking we could actually do a really hacky thing (modules add themselves ;; to this list) with this later but @@ -26,9 +24,6 @@ (fn love.load [] (music.load) - (when profi? - (profi:start) - (set love.frame 0)) (love.keyboard.setKeyRepeat true) (global the-state (state.init game)) (global messages (or messages {}))) @@ -57,13 +52,6 @@ (fn love.update [] (music.pre-update) - (when profi? - (profi:startHooks) - (set love.frame (+ love.frame 1)) - (when (= (% love.frame 100) 0) - (profi:stop) - (profi:writeReport) - (os.exit))) ;; TODO: make state changes actually possible (match (pcall #(state.update the-state)) (true next) (global the-state next) @@ -73,9 +61,7 @@ (table.insert messages {:ticks 1 :msg (.. "update: \n" x)}))) - (music.update) - (when profi? - (profi:stopHooks))) + (music.update)) (fn love.mousepressed [x y button] (match (pcall #(state.mousepressed the-state x y button)) -- cgit 1.3.0-6-gf8a5