Darthfett / A-Priori-Physics-System

A side-scroller game based upon Mega Man X, with a priori collision detection, and objects being represented as a sequence of connected points.
3 stars 0 forks source link

Player class: multiple calls to Entity __init__ #12

Closed Darthfett closed 12 years ago

Darthfett commented 12 years ago

When the Player class is initialized, its base class, Entity gets called twice, the first time with the proper position value, the second time with None. This is causing the position to be ignored and set to (0, 0)

Darthfett commented 12 years ago

Some debugging shows that this is two problems: The player is not drawn in the correct place (duplicate of #11), and the player is not being drawn in the same place in drawing outlines mode (duplicate of #5). Closing as duplicate.