-- Ajuda al desenvolupament de mini-debugger ---
- [NEW] Canviat de sys.beat a sys.chrono - [NEW] Mostrant fps
This commit is contained in:
@@ -87,7 +87,9 @@ function sprites.set_animation(sprite, animation)
|
|||||||
end
|
end
|
||||||
|
|
||||||
function sprites.update()
|
function sprites.update()
|
||||||
if not sys.beat() then return end
|
--if not sys.beat() then return end
|
||||||
|
if sys.chrono() < 0.02 then return end
|
||||||
|
sys.chrono(0)
|
||||||
|
|
||||||
sprites.update_sprite(sprites.hero)
|
sprites.update_sprite(sprites.hero)
|
||||||
for i,v in ipairs(sprites.list) do
|
for i,v in ipairs(sprites.list) do
|
||||||
|
|||||||
@@ -85,6 +85,8 @@ game = {
|
|||||||
elseif key.press(key.GRAVE) then
|
elseif key.press(key.GRAVE) then
|
||||||
console.enable()
|
console.enable()
|
||||||
end
|
end
|
||||||
|
|
||||||
|
draw.text(sys.fps(),2,20,8)
|
||||||
end,
|
end,
|
||||||
|
|
||||||
change_room = function(x,y)
|
change_room = function(x,y)
|
||||||
|
|||||||
Reference in New Issue
Block a user