2016-08-02 23:30:59 +00:00
|
|
|
--- A demo program for Pop.Box.
|
|
|
|
--- @copyright Paul Liverman III (2016)
|
|
|
|
--- @license The MIT License (MIT)
|
|
|
|
|
2016-08-21 05:29:16 +00:00
|
|
|
pop = require ""
|
2017-01-10 20:57:02 +00:00
|
|
|
|
|
|
|
pop.text("Hello World!")\align "center", "center"
|
|
|
|
|
|
|
|
--- @todo finish writing callbacks!
|
|
|
|
|
|
|
|
love.draw = ->
|
|
|
|
pop.draw!
|
|
|
|
--pop.debugDraw!
|
|
|
|
|
|
|
|
love.keypressed = (key) ->
|
|
|
|
if key == "escape"
|
|
|
|
love.event.quit!
|
|
|
|
|
|
|
|
|
2016-08-02 23:30:59 +00:00
|
|
|
|
2017-01-03 01:30:55 +00:00
|
|
|
-- NOTE TEMPORARY
|
2017-01-10 20:57:02 +00:00
|
|
|
--inspect = require "lib/inspect/inspect"
|
|
|
|
--print inspect pop
|
|
|
|
|
2017-01-03 01:30:55 +00:00
|
|
|
|
2016-11-25 05:32:04 +00:00
|
|
|
|
|
|
|
return --this is to prevent default returning of last statement
|