0 Members and 2 Guests are viewing this topic.
To create the sprite you can use many tools that already exist e.g. pixelscape (http://clrhome.org/pix/)
Quote from: Sorunome on January 07, 2013, 06:34:36 pmTo create the sprite you can use many tools that already exist e.g. pixelscape (http://clrhome.org/pix/)Thats a pretty sweet tool, I was hoping there was one out there like that. Would I have to then run a pixel test for each pixel on the sprite or is there like a sprite collision test command?
You can, but there's a much easier way to do things given the simple constraint that the sprite can tessellate. Take a look at the section "Mouse matters" hereTo do a collision with any sprite that can tessellate, you just need figure out what overlaps with specified regions in a rectangle. That can easily be done with bitmasking, if you're creative.
Imagine the mouse is the object you want to test collision with and the white tile is the star shaped bullet. If the mouse is in any of the colored areas, no collision. If it's in the white area, collision.