Working on a 2D platformer game. Does it make more sense to have generalized collision detection that's a bit more complex but handles all possible objects, or does it make more sense for each object or type of object have its own specialized collision?
What's better in the long run?
Also, game dev general I guess
Angel Evans
>talking about technology on g good luck pal there was a thread where op tried making his own basic cpu, it died with 4 replies this is a consumer electronics board now
Asher Richardson
You might like /vg/agdg/ more, but anyway. I'd just use Box2D for collision detection and response, then implement stuff that requires more fine-tuning (like movement, jumping, etc) yourself. How advanced is your platformer? Is there any variety in shapes or is it all boxes? Is it tile-based? There's a bunch of different ways you could go about this
Truu
Benjamin Bailey
...
Oliver Kelly
Tile based and I'd rather use my own stuff, Box2D has way, way more features than I need
Nathan Cooper
...
Jaxon Brown
>I guess
jesus christ
David Baker
Would you prefer I assume
Angel Bailey
tile collision for terrain, rect-rect for everything else ezpz
Mason Price
>that default mirc theme >mirc
jesus christ
Cameron Lopez
>caring about anything other than end product Found the non developer
Austin Russell
Is that a roll of refrigerated cookie dough?
James Morris
I would prefer you not sounding like some insecure 15 year old emo girl
Joshua Miller
Why?
Matthew Diaz
Hi, Are you using available engine or making yourself from directx/opengl/vulkan/mantle api?
James Hill
>tfw no 15 year old emo gf
Owen Hughes
ask 2*2*2 chan /tech
William Robinson
Make the collision pixel perfect
Nathaniel Edwards
I can tell by your question that your game will be shit and you probably won't even get it to work. As someone who has made a platformer my advice is to not bother, no one is going to play it even if you finish it completely, and you are essentially wasting your time. Focus on creating a business or something instead that will earn you money.
Adrian Clark
>Working on a 2D platformer game What platform are you using? Does it not already have a mechanism for collision detection between sprites?
Thomas Stewart
that looks like a comfy battlestation
Evan Carter
Just setup a nice AABB collision detection and response system, you don't need anything more than that
Tyler Lee
i'd say generalized. you can save yourself time by sharing code between parent and child objects
you can also make scripts that each and every object can use