mirror of
https://github.com/LDDestroier/CC/
synced 2024-11-13 21:34:54 +00:00
Update demo.lua
This commit is contained in:
parent
41b3b77b0d
commit
e6fcda73b1
@ -79,7 +79,6 @@ pBlit(TWO, 9, "ddddddddddddddddddd")
|
||||
pBlit(TWO, 10, "ddddddddddddddddddd")
|
||||
pBlit(TWO, 11, "ddddddddddddddddddd")
|
||||
|
||||
|
||||
ONE.meta.metaTransformation = TF.meta("e-")
|
||||
TWO.meta.metaTransformation = TF.meta(
|
||||
string.rep("5", 50) ..
|
||||
@ -87,6 +86,11 @@ TWO.meta.metaTransformation = TF.meta(
|
||||
string.rep("4", 1)
|
||||
)
|
||||
|
||||
local round = function(number)
|
||||
local v = 100000
|
||||
return math.floor(number * v) / v
|
||||
end
|
||||
|
||||
while true do
|
||||
|
||||
evt = {os.pullEvent()}
|
||||
@ -137,7 +141,7 @@ while true do
|
||||
TWO.setTextColor(colors.gray)
|
||||
TWO.write("Draw time: ")
|
||||
TWO.setTextColor(colors.white)
|
||||
TWO.write(windont.info.LAST_RENDER_DURATION .. " ")
|
||||
TWO.write(round(windont.info.LAST_RENDER_DURATION) .. " ")
|
||||
|
||||
for k,v in pairs(keysDown) do
|
||||
keysDown[k] = v + 1
|
||||
|
Loading…
Reference in New Issue
Block a user