diff options
| author | Chris B <1029chris@gmail.com> | 2015-12-29 21:52:38 -0800 |
|---|---|---|
| committer | Chris B <1029chris@gmail.com> | 2015-12-29 21:52:38 -0800 |
| commit | d37cb881d850c5a210ed318f994e8e4780aaec9d (patch) | |
| tree | 141cfd1625e8f6552529692c4427a21d95b98b8a /main.lua | |
| parent | 7fabb1dec5631871ecc32ed0593638c8df19bb37 (diff) | |
Set variables, added escape, added rectangle
Diffstat (limited to 'main.lua')
| -rw-r--r-- | main.lua | 16 |
1 files changed, 13 insertions, 3 deletions
@@ -1,9 +1,19 @@ function love.load() - + system = {} + system.width = love.graphics.getWidth() + system.height = love.graphics.getHeight() + system.mouse = {} + system.mouse.x = love.mouse.getX + system.mouse.y = love.mouse.getY + love.graphics.setBackgroundColor(0, 128, 128) end function love.update(dt) - + system.mouse.x = love.mouse.getX + system.mouse.y = love.mouse.getY + if love.keyboard.isDown("escape") == true then + love.event.quit() + end end function love.draw() - + love.graphics.rectangle("fill", 0, system.height-26, system.width, 26) end |
