cs360f14 / NinjaGame

GNU General Public License v2.0
0 stars 2 forks source link

Pygame Hit Boxes #18

Open NicLew opened 9 years ago

NicLew commented 9 years ago

Description: Sometimes when the character collides with a wall or target, it takes extra frames for the collision to register. Sometimes missing entirely in the case of the targets.

How to Replicate: Fairly random, but you will see it happen if you just play the game. Seems to happen more frequently if the angle is steep.

Where in the Code: We believe it is an issue with pygame.

NicLew commented 9 years ago

Possible Fix: Move only one pixel at a time but draw once the character has moved the total offset.