Search found 399 matches
- Tue Jan 22, 2013 9:19 pm
- Forum: Libraries and Tools
- Topic: Advanced Tiled Loader - No longer maintained
- Replies: 260
- Views: 176466
Re: Advanced Tiled Loader - Updated to 0.12.0!
60-40 fps sounds normal for vsync assuming the refresh rate on your monitor is 60Hz. Do you understand how vsync works?
- Tue Jan 22, 2013 12:11 am
- Forum: Libraries and Tools
- Topic: Advanced Tiled Loader - No longer maintained
- Replies: 260
- Views: 176466
Re: Advanced Tiled Loader - Updated to 0.12.0!
The rendering of the map shouldn't increase with the size, although currently multiple layers will slow it down considerably. The load times are slow because the tmx file has to first be translated into lua tables, then uncompressed, then processed into ATL objects. All of this is done in pure lua. ...
- Fri Jan 18, 2013 1:05 am
- Forum: Support and Development
- Topic: Sub-sorting a table?
- Replies: 18
- Views: 3489
Re: Sub-sorting a table?
Have you tried this? table.sort( T, function(x, y) if x.layer == y.layer then if x.depth == y.depth then return x.priority < y.priority end return x.depth > y.depth end return x.layer < y.layer end ) This could also work: table.sort( T, function(x, y) return x.layer == y.layer and (x.depth == y.dept...
- Tue Jan 15, 2013 5:05 pm
- Forum: General
- Topic: Multiple instances of an enemy.
- Replies: 4
- Views: 3479
Re: Multiple instances of an enemy.
There are lots of different approaches but the idea is the same: - For each instance create a new table to hold independent values such as position and acceleration - Make sure the instances have common class functions. This is usually accomplished by metatables and __index. - Put them into a list a...
- Fri Jan 11, 2013 10:57 pm
- Forum: General
- Topic: Notepad++ LÖVE theme
- Replies: 12
- Views: 10965
Re: Notepad++ LÖVE theme
This is pretty awesome. I changed a couple of things to increase the contrast and complete the color scheme.
Here is the theme file if anyone wants to try an alternative
Here is the theme file if anyone wants to try an alternative
- Tue Jan 08, 2013 2:36 pm
- Forum: Libraries and Tools
- Topic: Advanced Tiled Loader - No longer maintained
- Replies: 260
- Views: 176466
Re: Advanced Tiled Loader - Updated to 0.12.0!
Thanks. I swear I have fixed this same bug 5 times now.Ubermann wrote:I got a "Unknown event q" when I press [ESCAPE]
It should be love.event.push("quit").
- Tue Dec 18, 2012 10:35 pm
- Forum: General
- Topic: LUA file system.
- Replies: 15
- Views: 7347
Re: LUA file system.
This should give you the basic idea.
- Fri Dec 14, 2012 8:33 pm
- Forum: General
- Topic: LUA file system.
- Replies: 15
- Views: 7347
Re: LUA file system.
Using Lua's IO library you can write files to absolute locations. The problem is that there isn't a method to iterate over directories. I believe you can get around this limitation using io.popen to execute an OS list directory command and get the output. For Linux and OSX the command is "ls&qu...
- Tue Dec 11, 2012 3:51 pm
- Forum: General
- Topic: Ludum Dare 25 joinings
- Replies: 34
- Views: 14369
Re: Ludum Dare 25 joinings
I'm too slow for these types of competitions but good luck to you and any other lovers joining.
- Mon Dec 10, 2012 10:08 pm
- Forum: Support and Development
- Topic: Some pointers wanted regarding user created content
- Replies: 11
- Views: 6029
Re: Some pointers wanted regarding user created content
Like robin said, a decent text editor is going to be rough to simulate inside LÖVE. You can make a simple one easily enough though. The popular minecraft mod ComputerCraft gets by with an extremely basic one. It's very similar to what it seems you're trying to accomplish. Also, there is a sandbox pa...