From 00fe7f26171ab26167ceb383b20126da6c90d404 Mon Sep 17 00:00:00 2001 From: Paul Liverman III Date: Mon, 30 Nov 2015 11:55:52 -0800 Subject: [PATCH] wipsshit --- main.lua | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/main.lua b/main.lua index 95136d0..8d1e34c 100644 --- a/main.lua +++ b/main.lua @@ -1,12 +1,8 @@ local pop = require "pop" --TODO tell user that pop must be required with SLASHES function love.load() - local box = pop.box() -- returns the box element + pop.box() -- returns the box element -- or pop.create("box") (this is what is actually called when you call pop.box()) - - --TODO uncomment these once text is implemented! - --local text = pop.text(box) -- box will become the parent element of text - --text:setText("Hello and welcome to an example of Pop.Box, a very small shitty example.") end function love.draw() @@ -22,13 +18,7 @@ function love.mousereleased(button, x, y) end function love.keypressed(key) - if not pop.keypressed(key, unicode) then - if key == "escape" then - love.event.quit() - end + if key == "escape" then + love.event.quit() end end - -function love.keyreleased(key) - pop.keyreleased(key) -end