Search found 779 matches
- Wed Nov 27, 2013 6:12 pm
- Forum: Support and Development
- Topic: Why is '?' not recognized on love.keypressed?
- Replies: 9
- Views: 3952
Re: Why is '?' not recognized on love.keypressed?
*repeats bartbes' message because I'm too lazy to edit this* When you hit a key, the scancode that the keyboard sends gets translated by a few layers. It gets a bit problematic for non-US keyboard when the SDL 1.2 layer comes up because it doesn't recognize/translate all layouts properly. LÖVE then ...
- Tue Nov 26, 2013 12:43 pm
- Forum: Support and Development
- Topic: How to create a native library
- Replies: 9
- Views: 5990
Re: How to create a native library
I don't think they ship the compilers and Visual Studio separately. Probably because both rely on some shared library. Perhaps in the Windows SDK? I remember that Visual Studio 9 Express didn't have x86-64 compilers and needed the Windows SDK for them. That probably has changed with the Windows SDK ...
- Tue Nov 26, 2013 1:20 am
- Forum: Support and Development
- Topic: [SOLVED]Text Editor with Japanese Text Support
- Replies: 16
- Views: 12625
Re: Text Editor with Japanese Text Support
I want to make sure you've seen the note on the [wiki]love.graphics.newImageFont[/wiki] wiki page. The encoding issue will be fixed in 0.9.0. If LÖVE closes on you before it displaying anything, it's possible that an error happened before a window was created. You can redirect the standard output, w...
- Tue Nov 26, 2013 12:49 am
- Forum: Support and Development
- Topic: Help with integers (SOLVED)
- Replies: 5
- Views: 3913
Re: Help with integers
Lua uses floating-point numbers for all numbers. The Lua users wiki has some information about Lua numbers here and here . In your problem, you have to round the number down or up to get an integer. Lua provides the functions [manual]math.floor[/manual] and [manual]math.ceil[/manual] for this. if wa...
- Tue Nov 26, 2013 12:20 am
- Forum: Support and Development
- Topic: How to create a native library
- Replies: 9
- Views: 5990
Re: How to create a native library
LÖVE is compiled with MS' compiler, I'm compiling Lua with MinGW, so there must be some incompatibility between the generated code (alignment?) that is randomly causing this problem. Oh, yeah. If you do stuff like that.. :P You could link against a lua51.dll built with msvc. https://bitbucket.org/B...
- Mon Nov 25, 2013 9:11 pm
- Forum: Support and Development
- Topic: How to create a native library
- Replies: 9
- Views: 5990
Re: How to create a native library
The official LÖVE 0.8.0 binary for Windows x86 has Lua 5.1.4. At least that's what the version string in the executable says.
- Mon Nov 25, 2013 8:44 pm
- Forum: Support and Development
- Topic: How to create a native library
- Replies: 9
- Views: 5990
Re: How to create a native library
Yeah, it's a bit ugly with 0.8.0. It will be better in 0.9.0. 2. I can't link against a static Lua library because LÖVE would use one version of the code and my DLL, another. That should work more or less, Lua's API is lenient like that. It's obviously not the right thing to do, but I haven't encoun...
- Sun Nov 24, 2013 8:04 pm
- Forum: Support and Development
- Topic: Draw Single Pixel?
- Replies: 25
- Views: 11681
Re: Draw Single Pixel?
Yes, [wiki]love.graphics.point[/wiki] is one way to do it. Another would be drawing 1x1 rectangles with [wiki]love.graphics.rectangle[/wiki]. You can select the color for if you call [wiki]love.graphics.setColor[/wiki] beforehand. love.graphics.setColor(255, 0, 0) -- Red point. love.graphics.point(1...
- Fri Nov 22, 2013 4:48 pm
- Forum: Support and Development
- Topic: is it possible for a thread to use love.filesystem?
- Replies: 8
- Views: 3523
Re: is it possible for a thread to use love.filesystem?
Yes, it returns nil until there's an error. Keep calling it until the thread has ended. If it's still nil, then we know it's not a Lua error in your code.
- Fri Nov 22, 2013 3:34 pm
- Forum: Support and Development
- Topic: is it possible for a thread to use love.filesystem?
- Replies: 8
- Views: 3523
Re: is it possible for a thread to use love.filesystem?
Yes, that works. A few things though. You don't need to call [wiki]love.filesystem.newFile[/wiki] before you use [wiki]love.filesystem.write[/wiki]. [wiki]love.filesystem.write[/wiki] is more or less a short version of this. function love.filesystem.write(filename, data) local file = love.filesystem...