Search found 66 matches
- Sat Nov 10, 2012 6:59 am
- Forum: Support and Development
- Topic: Multiple resolutions, fullscreen and scaling
- Replies: 5
- Views: 2439
Re: Multiple resolutions, fullscreen and scaling
To get a list of resolutions, use love.graphics.getModes. For scaling, you can adjust the viewport by using love.graphics.scale before all the graphics you want scaled (don't forget to use push/pop).
- Sat Nov 10, 2012 6:47 am
- Forum: Support and Development
- Topic: Drawing ImageData workaround?
- Replies: 3
- Views: 2531
Re: Drawing ImageData workaround?
Yes, you can't draw an ImageData directly since it's on the CPU rather than the GPU, but you can call newImage() with an ImageData as a parameter and it will create a new image from it. I haven't benchmarked this myself... theoretically there is some overhead from having to upload the ImageData to t...
- Thu Nov 08, 2012 11:03 pm
- Forum: Support and Development
- Topic: Distributing both a .love and .exe
- Replies: 6
- Views: 2532
Re: Distributing both a .love and .exe
There are mainly three reasons I'd like to squeeze everything into a single cross-platform download: It's easier to get the game set up to distribute this way - you'd just throw the single .love file into a folder with all the runtimes and then just zip that up rather than creating separate archives...
- Thu Nov 08, 2012 10:41 pm
- Forum: Support and Development
- Topic: Distributing both a .love and .exe
- Replies: 6
- Views: 2532
Re: Distributing both a .love and .exe
Just checking, you are aware of the ability to make an .exe for windows, right? Yes. The thread in question is about having the standard love.exe distribution automatically run the .love file in the same directory it's in. A love.exe doesn't work on them, only a love.app. And I believe some other e...
- Thu Nov 08, 2012 9:33 pm
- Forum: Support and Development
- Topic: Distributing both a .love and .exe
- Replies: 6
- Views: 2532
Distributing both a .love and .exe
I was thinking of ways to package a LOVE game for all major OSes in a single ZIP download. In the Windows world, people expect an EXE that they can just double-click on to start the game. For Linux (and OS X? I'm not a Mac user here), it's more acceptable to have the user download LOVE separately in...
- Sat Oct 27, 2012 8:53 pm
- Forum: Support and Development
- Topic: (Lua) Passing variable from one function to another?
- Replies: 9
- Views: 3646
Re: (Lua) Passing variable from one function to another?
var hasn't been assigned yet because you haven't called foo(). The function keyword only defines the function - it doesn't actually execute the code inside of it until you call the function. You need to put foo() above print(var). Also, you probably shouldn't use global state unless you have good re...