summaryrefslogtreecommitdiffhomepage
path: root/main.lua
diff options
context:
space:
mode:
authorAki <nthirtyone@gmail.com>2016-05-17 00:55:02 +0200
committerAki <nthirtyone@gmail.com>2016-05-17 00:55:02 +0200
commiteb8b36111c308deed093c1eda6794cb52fcbe227 (patch)
treeb7553058849748f9e0a4784f4f24ede6c455f5b8 /main.lua
parent7f4ed3b00397beb9a7471570515cf9e3c0ce5027 (diff)
downloadroflnauts-eb8b36111c308deed093c1eda6794cb52fcbe227.zip
roflnauts-eb8b36111c308deed093c1eda6794cb52fcbe227.tar.gz
roflnauts-eb8b36111c308deed093c1eda6794cb52fcbe227.tar.bz2
Effects added
Diffstat (limited to 'main.lua')
-rw-r--r--main.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/main.lua b/main.lua
index 35e9147..4302cb9 100644
--- a/main.lua
+++ b/main.lua
@@ -6,6 +6,7 @@ require "ground"
require "player"
require "camera"
require "cloud"
+require "effect"
-- Temporary debug
debug = false
@@ -24,7 +25,6 @@ function love.load ()
w:createPlatform(290/2, 180/2-50, {-17,1, 17,1, 17,17, -17,17}, "assets/platform_top.png")
w:createNaut(290/2-10, 180/2 - 80, "assets/leon.png")
w:createNaut(290/2+10, 180/2 - 80, "assets/lonestar.png")
-
-- Temporary settings for second player
w.Nauts[2].name = "Player2"
@@ -58,4 +58,7 @@ end
-- Draw
function love.draw ()
w:draw()
+ if debug then
+ love.graphics.print("Current FPS: "..tostring(love.timer.getFPS( )), 10, 10)
+ end
end \ No newline at end of file