love.filesystem Loading .love files??
Posted: Sun Sep 08, 2013 2:02 pm
I am thinking of making an arcade that will love love files... I just want to know if there is a way to load .love files or will I have to unzip them first and then load the lua file... Also is there a limit on how big the .lua can be?
Would the best way to do this, be creating a separate thread for the loaded game? I would also like to use love. love.graphics.newScreenshot to allow users to save pics of the game...
I like the way the example loader works... but that was for .lua file and they are name eXXXX.lua where XXXX is a number. I would like to be able to spawn new .love games and keep their conf file intact even though that is changeing with 0.9.0
My goal is to have the end result a lot like Mario 64 where you can walk around a 3D or 2.5D world and jump into games.
PS. I had another question but I dont want to make another post for it... Can I or should I put love.timer.sleep(1) in the love.focus callback or is that unnecessary? What would be a good amount of time to sleep if the window is not active?
Would the best way to do this, be creating a separate thread for the loaded game? I would also like to use love. love.graphics.newScreenshot to allow users to save pics of the game...
I like the way the example loader works... but that was for .lua file and they are name eXXXX.lua where XXXX is a number. I would like to be able to spawn new .love games and keep their conf file intact even though that is changeing with 0.9.0
My goal is to have the end result a lot like Mario 64 where you can walk around a 3D or 2.5D world and jump into games.
PS. I had another question but I dont want to make another post for it... Can I or should I put love.timer.sleep(1) in the love.focus callback or is that unnecessary? What would be a good amount of time to sleep if the window is not active?