aboutsummaryrefslogtreecommitdiff
path: root/src/libjin-lua/scripts/time
diff options
context:
space:
mode:
Diffstat (limited to 'src/libjin-lua/scripts/time')
-rw-r--r--src/libjin-lua/scripts/time/time.lua22
-rw-r--r--src/libjin-lua/scripts/time/time.lua.h27
2 files changed, 24 insertions, 25 deletions
diff --git a/src/libjin-lua/scripts/time/time.lua b/src/libjin-lua/scripts/time/time.lua
index 61c6ab1..4f4a37b 100644
--- a/src/libjin-lua/scripts/time/time.lua
+++ b/src/libjin-lua/scripts/time/time.lua
@@ -6,20 +6,20 @@ local fps = 0
local t = 0
jin.time.getFPS = function()
- return fps
+ return fps
end
local step = jin.time.step
jin.time.step = function()
- step()
- -- Update fps
- t = t + jin.time.getDelta()
- if t > 1 then
- t = t - 1
- fps = f + 1
- f = 0
- else
- f = f + 1
- end
+ step()
+ -- Update fps
+ t = t + jin.time.getDelta()
+ if t > 1 then
+ t = t - 1
+ fps = f + 1
+ f = 0
+ else
+ f = f + 1
+ end
end
diff --git a/src/libjin-lua/scripts/time/time.lua.h b/src/libjin-lua/scripts/time/time.lua.h
index 4bae19e..537648d 100644
--- a/src/libjin-lua/scripts/time/time.lua.h
+++ b/src/libjin-lua/scripts/time/time.lua.h
@@ -5,19 +5,18 @@ static char time_lua[] = {
32,48,13,10,108,111,99,97,108,32,102,112,115,32,61,32,48,13,10,108,
111,99,97,108,32,116,32,61,32,48,13,10,13,10,106,105,110,46,116,105,
109,101,46,103,101,116,70,80,83,32,61,32,102,117,110,99,116,105,111,110,
-40,41,32,13,10,32,32,32,32,114,101,116,117,114,110,32,102,112,115,13,
-10,101,110,100,32,13,10,13,10,108,111,99,97,108,32,115,116,101,112,32,
-61,32,106,105,110,46,116,105,109,101,46,115,116,101,112,13,10,13,10,106,
-105,110,46,116,105,109,101,46,115,116,101,112,32,61,32,102,117,110,99,116,
-105,111,110,40,41,32,13,10,32,32,32,32,115,116,101,112,40,41,32,13,
-10,32,32,32,32,45,45,32,85,112,100,97,116,101,32,102,112,115,13,10,
-32,32,32,32,116,32,61,32,116,32,43,32,106,105,110,46,116,105,109,101,
-46,103,101,116,68,101,108,116,97,40,41,32,13,10,32,32,32,32,105,102,
-32,116,32,62,32,49,32,116,104,101,110,32,13,10,32,32,32,32,32,32,
-32,32,116,32,61,32,116,32,45,32,49,32,13,10,32,32,32,32,32,32,
-32,32,102,112,115,32,61,32,102,32,43,32,49,13,10,32,32,32,32,32,
-32,32,32,102,32,61,32,48,13,10,32,32,32,32,101,108,115,101,32,13,
-10,32,32,32,32,32,32,32,32,102,32,61,32,102,32,43,32,49,13,10,
-32,32,32,32,101,110,100,13,10,101,110,100,32,13,10,0
+40,41,32,13,10,32,32,114,101,116,117,114,110,32,102,112,115,13,10,101,
+110,100,32,13,10,13,10,108,111,99,97,108,32,115,116,101,112,32,61,32,
+106,105,110,46,116,105,109,101,46,115,116,101,112,13,10,13,10,106,105,110,
+46,116,105,109,101,46,115,116,101,112,32,61,32,102,117,110,99,116,105,111,
+110,40,41,32,13,10,32,32,115,116,101,112,40,41,32,13,10,32,32,45,
+45,32,85,112,100,97,116,101,32,102,112,115,13,10,32,32,116,32,61,32,
+116,32,43,32,106,105,110,46,116,105,109,101,46,103,101,116,68,101,108,116,
+97,40,41,32,13,10,32,32,105,102,32,116,32,62,32,49,32,116,104,101,
+110,32,13,10,32,32,32,32,116,32,61,32,116,32,45,32,49,32,13,10,
+32,32,32,32,102,112,115,32,61,32,102,32,43,32,49,13,10,32,32,32,
+32,102,32,61,32,48,13,10,32,32,101,108,115,101,32,13,10,32,32,32,
+32,102,32,61,32,102,32,43,32,49,13,10,32,32,101,110,100,13,10,101,
+110,100,32,13,10,0
};