what are common bugs when doing collision detection?

Discuss technical or other issues relating to programming the Nintendo Entertainment System, Famicom, or compatible systems. See the NESdev wiki for more information.

Moderator: Moderators

User avatar
Banshaku
Posts: 2417
Joined: Tue Jun 24, 2008 8:38 pm
Location: Japan
Contact:

Re: what are common bugs when doing collision detection?

Post by Banshaku »

With that pseudo-code it looks quite clean!

In my current code, I have a "manager" for the player and there is a method to check the input. This is called from the main loop of the current stage. The only thing is since my test assets is mega man, the actor has many state based on specific condition, causing the animation to change. For now I did the change of pointer when the status change but that causes a lot of duplicate code. I need to refactor that mess soon. For now, this is more than enough for testing.

What I'm learning from it is that it is hard to make something generic if the game contains many state for animation and have specific context change based on many movement (which mega man has). It's hard to reproduce something just from looking at it, that's for sure.
Post Reply