[go: up one dir, main page]

Menu

[r2]: / SCRIPT.LUA  Maximize  Restore  History

Download this file

18 lines (15 with data), 357 Bytes

dofile("Engine.lua");
--Call startUp function
startUp("Content/Levels/test/test.map", "Content/Levels/test/test.mapc");

--Create FPS Timer
fps = 0
current_fps = 0
timer = pge.timer.create()

while pge.running() do
	if pge.timer.peekdelta(timer) >= 1.0 then
		current_fps = fps;
		fps = -1;
		timer = pge.timer.create();
	end
	
	Main();
end