Search found 779 matches
- Wed Sep 25, 2013 1:46 pm
- Forum: Support and Development
- Topic: read textfile and save in a multidimensional table
- Replies: 11
- Views: 4662
Re: read textfile and save in a multidimensional table
It's probably better if you follow Plu's advice and iterate over a line of values and add them to the table. Here's an example that works if you want to have a value on every line. I kind of hardcoded the 13 in there, so that's not the prettiest example. map = {} for line in love.filesystem.lines(&q...
- Wed Sep 25, 2013 7:54 am
- Forum: Libraries and Tools
- Topic: Perfect Image Transformation
- Replies: 27
- Views: 11941
Re: Perfect Image Transformation
What are you using that you need to enable that extension?
Another thing: The built-in function 'inverse' only comes with GLSL 1.4 and up. LÖVE targets 1.2 if you don't override it.
Another thing: The built-in function 'inverse' only comes with GLSL 1.4 and up. LÖVE targets 1.2 if you don't override it.
- Wed Sep 25, 2013 5:24 am
- Forum: Support and Development
- Topic: Why does nothing work? Mouse should draw when clicked.
- Replies: 5
- Views: 2403
Re: Why does nothing work? Mouse should draw when clicked.
I think LÖVE 0.8.0 has some issues with properly allocating the texture units for the GLSL uniforms and it looks like you actually ran into this. I do not know a workaround for it. 0.9.0 had some changes in that area and should work better. Often, your only resort with them is rewriting the whole th...
- Sun Sep 22, 2013 6:25 am
- Forum: General
- Topic: Image vanishes on its own accord
- Replies: 2
- Views: 1723
Re: Image vanishes on its own accord
This is an issue in LÖVE. You have to keep a reference to the Image around or the garbage collector will collect it and the shader is sad that his image disappeared. For example the line where you load the image. If you mark the sky variable as a local, then Lua doesn't need it anymore once main.lua...
- Sat Sep 21, 2013 3:58 am
- Forum: General
- Topic: love.conf not using love.quit when closed
- Replies: 12
- Views: 2139
Re: love.conf not using love.quit when closed
Does the Console run as a separate process on Windows though like Terminal does on Unix? Yes and no. The consoles are handled by a Windows service and the processes just request their allocation or attachment. The console window itself is associated with the process that allocated it (Not that this...
- Sun Sep 15, 2013 12:51 pm
- Forum: General
- Topic: Window size problem
- Replies: 2
- Views: 2042
Re: Window size problem
love.window.setMode will be the function used in LÖVE 0.9.0 to set the window properties. In LÖVE 0.8.0 use love.graphics.setMode
- Thu Sep 12, 2013 10:09 pm
- Forum: Support and Development
- Topic: Thread Question
- Replies: 17
- Views: 3387
Re: Thread Question
That's right, their separate Lua environments and don't know of each other. The only way threads can communicate (in LÖVE 0.8.0) is through their message boxes that you access with the functions [wiki]Thread:set[/wiki], [wiki]Thread:get[/wiki], [wiki]Thread:peek[/wiki] and [wiki]Thread:demand[/wiki]...
- Thu Sep 12, 2013 5:17 pm
- Forum: Support and Development
- Topic: Thread Question
- Replies: 17
- Views: 3387
Re: Thread Question
The love.thread page mentions that the thread only loads love.thread. The require function will use love.filesystem function to find the Lua file and you need to load the module to make it succeed. Just put a require("love.filesystem") at the top of thread.lua.
- Thu Sep 12, 2013 4:53 pm
- Forum: Support and Development
- Topic: LÖVE "callbacks" and love.run()?
- Replies: 6
- Views: 2942
Re: LÖVE "callbacks" and love.run()?
The callbacks are not defined when LÖVE starts up. The code in love.run just checks if they exist and calls them if that's the case. There's no timing code in LÖVE to force some kind of rules upon love.update or love.draw when they get called. They always get called in the same order and it tries to...
- Wed Sep 11, 2013 5:49 pm
- Forum: Support and Development
- Topic: .love file error
- Replies: 5
- Views: 1636
Re: .love file error
Uhm. I still think the names you pass to newImage don't match the file names in the archive.
If you want us to have a look again, upload the new file.
If you want us to have a look again, upload the new file.