mirror of
https://github.com/TangentFoxy/Pop.Box.git
synced 2024-12-15 12:44:20 +00:00
6255f30fa6
- inheritsFromElement improved - fixed a couple bugs in element - added inspect library
28 lines
490 B
Plaintext
28 lines
490 B
Plaintext
--- A demo program for Pop.Box.
|
|
--- @copyright Paul Liverman III (2016)
|
|
--- @license The MIT License (MIT)
|
|
|
|
pop = require ""
|
|
|
|
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!
|
|
|
|
|
|
|
|
-- NOTE TEMPORARY
|
|
--inspect = require "lib/inspect/inspect"
|
|
--print inspect pop
|
|
|
|
|
|
|
|
return --this is to prevent default returning of last statement
|