Search found 399 matches

by Kadoba
Wed Dec 05, 2012 2:22 pm
Forum: Support and Development
Topic: Can you use ATL in commercial games?
Replies: 1
Views: 1040

Re: Can you use ATL in commercial games?

Yes, the license is MIT. You can use it pretty much however you want. It was pointed out to me that the current way ATL draws maps is inefficient under certain conditions, especially with multiple layers, so you may want to benchmark it and see if it meets your needs. I'm working on a much better re...
by Kadoba
Tue Dec 04, 2012 7:48 pm
Forum: Support and Development
Topic: Tiles in canvas does not scale properly
Replies: 2
Views: 1546

Re: Tiles in canvas does not scale properly

It's definitely a filter problem. I'm not sure if the default filter applies to canvases. Try setting the filter manually with Canvas:setFilter.
by Kadoba
Thu Nov 22, 2012 8:41 pm
Forum: Support and Development
Topic: Drawing a Grid
Replies: 11
Views: 5123

Re: Drawing a Grid

Yeah I was using that before but because I couldn't change the image or colour of the lines I went with using Quads. Whoops. Didn't see that part. You can change the color of all love.graphics functions by using love.graphics.setColor . Just be sure to set the draw color back to white (255,255,255,...
by Kadoba
Thu Nov 22, 2012 7:47 pm
Forum: Support and Development
Topic: Drawing a Grid
Replies: 11
Views: 5123

Re: Drawing a Grid

Another approach is to use love.graphics.rectangle("line").
grid.love
(255 Bytes) Downloaded 259 times
by Kadoba
Thu Nov 22, 2012 7:08 am
Forum: Support and Development
Topic: Scanline fill? (flood fill / paint bucket)
Replies: 10
Views: 4187

Re: Scanline fill? (flood fill / paint bucket)

If you're planning on using larger grids I recommend against the recursive method since you can overflow your stack pretty easily with a flood fill. ...unless you are using tail calls, then the stack does not grow: http://www.lua.org/pil/6.3.html Can tail calls occur even when calling the recursion...
by Kadoba
Wed Nov 21, 2012 8:03 pm
Forum: Support and Development
Topic: Screen being overwritten (push/pop issue?)
Replies: 2
Views: 1503

Re: Screen being overwritten (push/pop issue?)

I believe push and pop only affects love.graphics.translate() and love.graphics.scale(). The active color you will have to keep up with manually.
by Kadoba
Wed Nov 21, 2012 4:06 pm
Forum: Support and Development
Topic: Scanline fill? (flood fill / paint bucket)
Replies: 10
Views: 4187

Re: Scanline fill? (flood fill / paint bucket)

Here are two flood fill methods. The first one is a simpler recursive method and the second one is a queue based method. If you're planning on using larger grids I recommend against the recursive method since you can overflow your stack pretty easily with a flood fill. RecursiveFill.love QueueFill.l...
by Kadoba
Wed Nov 21, 2012 3:50 pm
Forum: Support and Development
Topic: Questions on HardonCollider
Replies: 1
Views: 1474

Re: Questions on HardonCollider

I am new to using Hardon Collider, so I'd like to some things cleared up due to the incomplete tutorial: When you are defining collisions, would you have to in theory do this for all combinations of collisions (or at least every type of collision)? You can simplfy your collision response by definin...
by Kadoba
Thu Nov 08, 2012 2:54 pm
Forum: Support and Development
Topic: Hold To Jump
Replies: 12
Views: 3968

Re: Hold To Jump

Here's an example on how to do variable jumping.
JumpExample.love
(2.57 KiB) Downloaded 208 times
by Kadoba
Wed Nov 07, 2012 10:08 pm
Forum: Support and Development
Topic: Drawing a pixel-y circle
Replies: 2
Views: 1486

Re: Drawing a pixel-y circle

Yeah you want the midpoint circle algorithm. Here's an example love for you.
MidpointCircleExample.love
(579 Bytes) Downloaded 206 times