better wirer behavior etc
This commit is contained in:
parent
bc4976b324
commit
6a5c2fc951
24 changed files with 11347 additions and 8198 deletions
9
main.lua
9
main.lua
|
|
@ -8,6 +8,7 @@ require "libs/TSerial"
|
|||
require "_debug_helpers"
|
||||
require "_helpers"
|
||||
require "input"
|
||||
require "profiler"
|
||||
require "color"
|
||||
require "room"
|
||||
require "world"
|
||||
|
|
@ -145,6 +146,7 @@ function love.draw()
|
|||
love.graphics.draw(finalCanvas, 0, 0)
|
||||
love.graphics.draw(sideBarCanvas, sideBarBox.x, sideBarBox.y)
|
||||
love.graphics.print("Current FPS: "..tostring(love.timer.getFPS( )), 10, 10)
|
||||
PerfProfiler:draw()
|
||||
Dialogue.draw()
|
||||
love.graphics.setCanvas()
|
||||
|
||||
|
|
@ -164,6 +166,13 @@ function love.draw()
|
|||
end
|
||||
|
||||
function love.keypressed(key)
|
||||
-- Developer CPU sampling: record a representative moving sequence, then
|
||||
-- press F9 again to write folded stacks for flamegraph.pl.
|
||||
if key == "f9" then
|
||||
PerfProfiler:toggle()
|
||||
return
|
||||
end
|
||||
|
||||
-- Available even while a dialogue is open, so the player never has to
|
||||
-- dismiss something important just to change the colour treatment.
|
||||
if key == "f4" then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue