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