Search found 6 matches

by SpotlightKid
Sat Nov 22, 2014 3:05 pm
Forum: General
Topic: Help with game lag
Replies: 14
Views: 9751

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...
by SpotlightKid
Sat Nov 15, 2014 3:45 am
Forum: General
Topic: Help with game lag
Replies: 14
Views: 9751

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...
by SpotlightKid
Sat Nov 15, 2014 3:26 am
Forum: General
Topic: looking for love launcher
Replies: 4
Views: 3189

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....
by SpotlightKid
Wed Nov 12, 2014 1:18 am
Forum: Support and Development
Topic: Problem drawing when going from fullscreen to normal
Replies: 4
Views: 4781

Re: Problem drawing when going from fullscreen to normal

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?
Yes, of course, if you don't have version 0.9.1, get it. Why wouldn't you want to?
by SpotlightKid
Mon Nov 10, 2014 10:39 pm
Forum: Support and Development
Topic: Small Useful Functions
Replies: 127
Views: 53344

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, ...
by SpotlightKid
Mon Nov 10, 2014 9:40 am
Forum: Libraries and Tools
Topic: Rounded Rectangles
Replies: 13
Views: 6902

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...