kaplayjs / kaplay

🦖 A JavaScript/TypeScript Game Library that feels like a game, fun
https://kaplayjs.com
MIT License
525 stars 35 forks source link

allow specific objects in collisionIgnore #396

Closed dragoncoder047 closed 1 month ago

dragoncoder047 commented 1 month ago

Allows the user to put specific objects into collisionIgnore instead of having to generate a unique tag.

pkg-pr-new[bot] commented 1 month ago

Open in Stackblitz

pnpm add https://pkg.pr.new/kaplayjs/kaplay@396

commit: 1b3ec3f

lajbel commented 1 month ago

I think it's fine to add a single tag for a gameObj, I feel it a little unnecessary. Closing for now, anyway good PR and thanks for contributing

dragoncoder047 commented 1 month ago

I think it's fine to add a single tag for a gameObj, I feel it a little unnecessary. Closing for now, anyway good PR and thanks for contributing

Yeah, I guess it's easy enough to create a unique tag ("obj"+obj.id).