Search found 6 matches
- Sat Nov 22, 2014 3:05 pm
- Forum: General
- Topic: Help with game lag
- Replies: 14
- Views: 10640
Re: Help with game lag
I honestly think the worst thing about LUA is the fact that instead of crashing, it actually makes global variables by default unless especially told not to aka local. [...] I have a gut feeling that if the project size grows, the probability of me not being able to track bugs that comes from havin...
- Sat Nov 15, 2014 3:45 am
- Forum: General
- Topic: Help with game lag
- Replies: 14
- Views: 10640
Re: Help with game lag
I don't have any advice on your code but rather on coding practice. Maybe you already do, but if you don't, get in the habit of putting your code into a version control system (e.g. git, mercurial, subversion) right away when you start a project and commit your changes often. Especially when you fin...
- Sat Nov 15, 2014 3:26 am
- Forum: General
- Topic: looking for love launcher
- Replies: 4
- Views: 3476
Re: looking for love launcher
Do you mean the examples collection on the wiki? http://www.love2d.org/wiki/examples.love The main.lua kinda does what you're describing. I adapted the examples for LÖVE 0.9.1 and cleaned up the code quite a bit. Here's my repository:: http://trac.chrisarndt.de/code/browser/projects/love2d/love-0.9....
- Wed Nov 12, 2014 1:18 am
- Forum: Support and Development
- Topic: Problem drawing when going from fullscreen to normal
- Replies: 4
- Views: 5315
Re: Problem drawing when going from fullscreen to normal
Yes, of course, if you don't have version 0.9.1, get it. Why wouldn't you want to?Raxe88 wrote:I am using version 9 of LÖVE but I downloaded it when it first came out, should I download a lastest version?
- Mon Nov 10, 2014 10:39 pm
- Forum: Support and Development
- Topic: Small Useful Functions
- Replies: 127
- Views: 62896
Re: Small extra functions
A code I wrote to convert frames to quads (a new image in quad format)! Neat idea! Here's an IMHO cleaner and more efficient version. Instead of copying each pixel, use ImageData:paste() instead. Still, this is something that should probably better be done using a general purpose graphics package, ...
- Mon Nov 10, 2014 9:40 am
- Forum: Libraries and Tools
- Topic: Rounded Rectangles
- Replies: 13
- Views: 8179
Re: Rounded Rectangles
Here's my version, which I ported from similar code I had for PyGame. It draws the rectangle as a polygon to a canvas and returns this, so the rectangle can be reused efficiently. It also allows to set a different foreground (border) and background (fill) color. Both may have alpha ~= 255, but if th...