From 85df7feacac36f5cd058e86ff81b3f4aa9f0ded8 Mon Sep 17 00:00:00 2001 From: s-ol Date: Tue, 11 Feb 2020 18:35:26 +0100 Subject: new Registry tagging mechanism --- lib/gui.moon | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'lib/gui.moon') diff --git a/lib/gui.moon b/lib/gui.moon index 5ec7883..a2fee4b 100644 --- a/lib/gui.moon +++ b/lib/gui.moon @@ -2,7 +2,6 @@ assert love, "this module only works from within love2d!" { graphics: lg, keyboard: lk } = love import Op from require 'core' -import Registry from require 'registry' import Copilot from require 'copilot' import Logger from require 'logger' @@ -62,12 +61,10 @@ for a in *arg Logger.init arguments.log -env = Registry! -copilot = Copilot arguments[#arguments], env +copilot = Copilot arguments[#arguments] love.update = (dt) -> - copilot\poll! - env\update dt + copilot\update dt love.draw = -> out.draw_all! -- cgit v1.2.3