Page 1 of 1

Collision

Posted: Sun Jun 15, 2014 1:57 pm
by Manello
First of all, maybe i should tell you a bit of that project.
I'm going to make an 2D Arcade-Shooter with topview.

The map will be generated random out of pre-defined map parts, maybe you
know that from games like "Binding of Isaac".
This parts contains fixed objects like walls/lights, and also moving or spawning objects like
enemys or weapons.
In this map the player can move around freely, collide with some objects like walls, with others
not like objects, wich he will just pick up and dont lose his movement speed.

Now i dont know where i should start, i just found the tilded collision in the wiki, but
nothing that I need.
I would be happy with some link to an tutorial or a starting help for that.

Manuel

Re: Collision

Posted: Sun Jun 15, 2014 2:25 pm
by kikito
I recently released version 2 of my collisions library, bump:

http://love2d.org/forums/viewtopic.php?f=5&t=78086

The source code and documentation is here:

https://github.com/kikito/bump.lua

The simple demo branch shows how to use it for moving a player around in an environment with walls, very appropriate for a top-down game:

https://github.com/kikito/bump.lua/tree/simpledemo