Permalink
Browse files

show fps and better title

  • Loading branch information...
1 parent 6dfe2a4 commit 2ab33abac343fb02ebe6efc20cc01877c70e0f3f @leafo committed Dec 17, 2012
Showing with 7 additions and 3 deletions.
  1. +1 −1 conf.moon
  2. +6 −2 main.moon
View
@@ -2,5 +2,5 @@
love.conf = (t) ->
t.screen.width = 800
t.screen.height = 450
- t.title = "LD25"
+ t.title = "X-Moon by leafo - Ludum Dare 25"
t.author = "leafo"
View
@@ -133,6 +133,7 @@ class Game
}
paused: false
+ show_fps: false
new: =>
@player = Player 100, 100, @
@@ -151,8 +152,9 @@ class Game
draw: =>
@world\draw!
- g.scale 2
- p tostring(timer.getFPS!), 2, 50
+ if @show_fps
+ g.scale 2
+ p tostring(timer.getFPS!), 2, 50
update: (dt) =>
return if dt > 0.5
@@ -190,6 +192,8 @@ class Game
@paused = not @paused
when "f1"
.disable_project = not .disable_project
+ when "f3"
+ @show_fps = not @show_fps
false
mousepressed: (x,y, btn) =>

0 comments on commit 2ab33ab

Please sign in to comment.