Search found 56 matches

by kexisse
Wed Sep 12, 2012 9:33 am
Forum: Support and Development
Topic: Making a Dotted/Dashed Line
Replies: 1
Views: 1204

Making a Dotted/Dashed Line

I'm trying to draw a dotted/dashed line.
I just found setLineStipple but it's removed in Löve 0.8.
Is there an alternative method?
by kexisse
Mon Sep 03, 2012 11:48 am
Forum: Support and Development
Topic: Resolving Multiple Collisions
Replies: 4
Views: 1194

Re: Resolving Multiple Collisions

You don't need to stick to collision boxes methods concerning detection. I also have a platformer in the works and followed instead the old multiple point detection used in 8/16 bit classics. Could be more flexible for you than using inaccurate multiple boxes. Check this great article/tutorial here...
by kexisse
Mon Sep 03, 2012 10:56 am
Forum: Support and Development
Topic: Resolving Multiple Collisions
Replies: 4
Views: 1194

Re: Resolving Multiple Collisions

Thanks for the reply! I had one thought. Currently I use one collision shape to detect all types of collision — top, bottom, left, right. I thought I could solve the corner issue by creating 4 collision shapes and offsetting their corners slightly (as shown below). Using multiple collision shapes. T...
by kexisse
Mon Sep 03, 2012 9:03 am
Forum: Support and Development
Topic: Resolving Multiple Collisions
Replies: 4
Views: 1194

Resolving Multiple Collisions

I'm using HardonCollider and my own tile system to make a platformer. My player character is 2 tiles wide, so when it's standing on the ground, it touches between 2 and 3 tiles. overlap.png This produces 2-3 HardonCollider onCollision calls. Within the onCollision call, I move my Player entity by th...
by kexisse
Mon Sep 03, 2012 6:12 am
Forum: Support and Development
Topic: Observer Pattern in Lua
Replies: 9
Views: 1846

Re: Observer Pattern in Lua

I had a similar problem. I rolled my own Entity/Component model. At first Entity had a few lists that components could add themselves to: drawComponents, updateComponents, collisionComponents. Entity would call draw, update or onCollide on each of the components that had registered themselves. Howev...
by kexisse
Wed Aug 29, 2012 6:08 am
Forum: Libraries and Tools
Topic: love-loader: load resources in a separate thread, easily
Replies: 46
Views: 11367

Re: love-loader: load resources in a separate thread, easily

This library looks awesome. I'm thinking of using it in my project. I create a bunch of Entities instances with images, and then set their properties based on the image size/width etc. Currently: function Entity:initialize() -- load image -- set properties end With love-loader there resource isn't r...
by kexisse
Thu Aug 23, 2012 12:26 am
Forum: Support and Development
Topic: Draw hollow circle / doughnut
Replies: 11
Views: 1901

Draw hollow circle / doughnut

I thought this might be possible with setStencil but it doesn't seem to make sense for hollow stuff.

How can I draw a hollow circle / doughnut shape?
by kexisse
Tue Aug 21, 2012 11:39 am
Forum: Support and Development
Topic: Efficient tile-based scrolling with rotation?
Replies: 4
Views: 820

Re: Efficient tile-based scrolling with rotation?

It sounds like you're trying to rotate the camera itself. There are a number of camera implementations out there, for example in vrld's hump library.
by kexisse
Tue Aug 21, 2012 11:37 am
Forum: Support and Development
Topic: Move object every X seconds
Replies: 7
Views: 1325

Re: Move object every X seconds

The hump library has a Timer class that is perfect for this.
by kexisse
Sun Aug 19, 2012 12:46 pm
Forum: Support and Development
Topic: newCanvas causing hard freeze
Replies: 1
Views: 412

newCanvas causing hard freeze

Yes it's another Canvas-related thread. I made a mistake in my code and called newCanvas with values of around 7000. It causes my machine (mac air) to freeze, requiring a hard reboot. I've fixed the bug, but in the future I can see this happening as I make larger levels. It also made me wonder about...