1
0
mirror of https://github.com/LDDestroier/CC/ synced 2024-11-13 21:34:54 +00:00

Update demo.lua

This commit is contained in:
LDDestroier 2020-02-01 00:56:11 -05:00 committed by GitHub
parent 41b3b77b0d
commit e6fcda73b1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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