waterbearlang / waterbear

Visual block syntax for programming languages
http://waterbearlang.com/
358 stars 88 forks source link

Collision block #1232

Closed samuel-massinon closed 8 years ago

samuel-massinon commented 8 years ago

Created a collision detection block. Currently, it will only detect collisions between square and circle sprites. The collision also assumes that the squares and rectangles are drawn at location 0,0 and it uses the sprites location to determine collision. The collision also doesn't account for rectangles that have their angle changed.

This is not perfect, but I think it's good start.

There's also an example you can try out called simple pong to show how to use it.

Issue reference https://github.com/waterbearlang/waterbear/issues/1207

dethe commented 8 years ago

We can pull this in with the caveat that you continue reducing the edge cases that don't work now. ;-) :shipit: