nesdev.com
http://forums.nesdev.com/

NES games with the best animation
http://forums.nesdev.com/viewtopic.php?f=21&t=13299
Page 3 of 3

Author:  psycopathicteen [ Sat Oct 03, 2015 1:51 pm ]
Post subject:  Re: NES games with the best animation

@ Espozo

Every object has two copies of the frame number. One "input" frame number and one "output" frame number. The character's AI routine determines the input frame, then the animation engine decides weather or not it can update the output frame, and then the OAM building routine draws the output frame.

Author:  Espozo [ Sat Oct 03, 2015 2:24 pm ]
Post subject:  Re: NES games with the best animation

So it's like one has the previous frame, and one has what is supposed to be the current frame?

Author:  psycopathicteen [ Sat Oct 03, 2015 5:21 pm ]
Post subject:  Re: NES games with the best animation

Pretty much.

I think I have an easy way around the collision box problem. For the player-enemy collision, I cheated a bit and used point-box collision, to make collision more forgiving. I could just have a collision point variable, so I can just move the collision point.

Author:  Espozo [ Sat Oct 03, 2015 5:52 pm ]
Post subject:  Re: NES games with the best animation

R-Type 1-3 actually use a single point for the ship's hitbox. Despite how hard these games can be, they're actually pretty forgiving in a couple of aspects like this. I don't know why I felt like sharing that.

Anyway, I'm just curious, but is the player have its own designated spot in the object table so it's easy to look for? For collisions, I just thought of having the position of the player being one point, and have the hitbox have a separate position relative to the player coordinates. That way, if you crouch, the coordinates for the player don't have to move, only the hitbox. This is important because if you where crouching and then decided to jump, the player would start out partially through the floor, and could lead to you clipping through it.

Author:  psycopathicteen [ Sat Oct 03, 2015 8:51 pm ]
Post subject:  Re: NES games with the best animation

Ideally the hitbox should be separate from the objects coordinates. I just did it an easy way that seemed good enough at the time.

Page 3 of 3 All times are UTC - 7 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/