Search found 5 matches
- Wed Jan 26, 2011 11:34 am
- Forum: Support and Development
- Topic: Simple ghosting: How can I stop screen from redrawing?
- Replies: 14
- Views: 10241
Re: Simple ghosting: How can I stop screen from redrawing?
Since I already have love.update and love.draw, I am supposed to simply add a love.run() and comment out love.graphics.clear() right? But if I do that, nothing draws! Which, I guess, will be the driver problems? (Ubuntu 10.04 64bit Nvidia GTS250) ...So, is this classic way something else I can try?...
- Mon Dec 20, 2010 2:34 am
- Forum: Support and Development
- Topic: [Noob Help] Running Programs.
- Replies: 4
- Views: 2953
Re: [Noob Help] Running Programs.
Okay, so I'm 100% sure that when I zip the contents, theres no folders in there, just the main file. With the second bit, i don't understand what your trying to say, but I've tried dragging the main.lua file to the love application . And with the batch file, I'll make one similar, and test it out, ...
- Mon Dec 20, 2010 2:26 am
- Forum: Support and Development
- Topic: [Noob Help] Running Programs.
- Replies: 4
- Views: 2953
Re: [Noob Help] Running Programs.
Are you sure you've zipped the contents of the folder and not the folder itself? Also for running the file itself make sure you're passing the folder containing main not the main.lua file. Running from notepad++ never worked for me as it starts in the wrong folder so I just made a batch file called ...
- Sun Dec 19, 2010 3:49 am
- Forum: Support and Development
- Topic: I can't find a quit() function
- Replies: 4
- Views: 3067
Re: I can't find a quit() function
I found that in Google searches, but I get a CSOD that quit is nil.Mud wrote:It's in the native Lua library 'os':
os.quit()
edit:
I (accidentally) found the solution. It doesn't seem to be documented on the wiki but this worked for me:
Code: Select all
love.event.push("q")
- Sun Dec 19, 2010 3:43 am
- Forum: Support and Development
- Topic: I can't find a quit() function
- Replies: 4
- Views: 3067
I can't find a quit() function
What function do I need to use to allow the quit menu in my game to quit the game? I've looked through the documentation for LOVE and LUA, and tried love.quit(), love.exit() etc and haven't seen any way to do this. How do I go about this?