diff options
| author | 1029chris <1029chris@gmail.com> | 2016-02-23 13:20:48 -0800 |
|---|---|---|
| committer | 1029chris <1029chris@gmail.com> | 2016-02-23 13:20:48 -0800 |
| commit | cde84a2164a82fd864de097d857b725db678a998 (patch) | |
| tree | a0af704b266b90df525c15776258ecca00726672 /main.lua | |
| parent | a9bc86ed7decca32c0eb8e0e080d151eec21b855 (diff) | |
Added loading scene
Diffstat (limited to 'main.lua')
| -rw-r--r-- | main.lua | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -11,8 +11,9 @@ function love.load() require "chat" require "settings" require "system" + require "loading" love.graphics.setDefaultFilter("nearest", "nearest") - love.graphics.setBackgroundColor(0, 128, 128) + love.graphics.setBackgroundColor(0, 0, 0) love.graphics.setNewFont() pressstart = love.graphics.newFont("fonts/pressstart.ttf", 12) pressstart:setFilter("nearest", "nearest") @@ -26,7 +27,6 @@ function love.update(dt) sys.mouse.x = love.mouse.getX() sys.mouse.y = love.mouse.getY() if love.keyboard.isDown("escape") == true then - love.window.setMode(800, 600, {fullscreen=false}) love.event.quit() end if love.keyboard.isDown("u") == true and win[1].min == true then @@ -57,4 +57,7 @@ function love.draw() if scene == 1 then drawSystem() end + if scene == 0 then + drawLoading() + end end |
