Difference between revisions of "Donut"

(Created page with "Donut is a simplified debug message control system for LÖVE. == Debug message control system? wth??? == You're able to add debug messages like this: [[File:donutdebugscreen.pn...")
 
Line 46: Line 46:
 
* [http://github.com/Kasoki/Donut Donut on Github]
 
* [http://github.com/Kasoki/Donut Donut on Github]
  
{{#set:LOVE Version=0.7.2}}
+
{{#set:LOVE Version=Any}}
 
{{#set:Description=Simplified debug message control system}}
 
{{#set:Description=Simplified debug message control system}}
 
[[Category:Libraries]]
 
[[Category:Libraries]]

Revision as of 23:26, 20 February 2012

Donut is a simplified debug message control system for LÖVE.

Debug message control system? wth???

You're able to add debug messages like this:

Donut library screenshot

Usage

require("donut.lua")

function love.load()
	debug = Donut.init(10, 10)
	fps = debug.add("FPS")
	random = debug.add("Random")
end

function love.update(dt)
	debug.update(fps, love.timer.getFPS())
	debug.update(random, math.random(0, 100))
end

function love.keypressed(key, unicode)
	if key == "s" then -- show/hide with "s"
		debug.toggle()
	end
end

function love.draw()
	debug.draw()
end

Documentation

coming soon...

Download

Sourcecode