You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now they're not tied to sprites, which is fine (I don't have the memory to do that and maybe people don't need bounding boxes for most sprites) but how will a person be able to:
Create a bounding box easily for a sprite
Remove the bounding box for that sprite without resetting everything
For instance, if you have a sprite that's some obstacle and then you break it, the bounding box should go away. The obvious solution is to simply store it in the internal data, it only requires one extra byte. I think that should be left up to the user, as that starts to get a little complicated. Instead, you could add a simple function that's similar to "addSprite" but for bounding boxes.
The text was updated successfully, but these errors were encountered:
I ended up doing the simple function addBounds and if you want to link it to a sprite that's up to you. Should be as easy as allocating 2 extra bytes in the internal buffer and storing the pointer in there.
Right now they're not tied to sprites, which is fine (I don't have the memory to do that and maybe people don't need bounding boxes for most sprites) but how will a person be able to:
For instance, if you have a sprite that's some obstacle and then you break it, the bounding box should go away. The obvious solution is to simply store it in the internal data, it only requires one extra byte. I think that should be left up to the user, as that starts to get a little complicated. Instead, you could add a simple function that's similar to "addSprite" but for bounding boxes.
The text was updated successfully, but these errors were encountered: