SuperMarioWorld
SuperMarioWorld copied to clipboard
Jump when falling
When Mario falls and tries to jump, the sound plays anyway; it shouldn't.
It appears that the character's jump state can't go from ONFLOOR to FALLING. I did that because the character would be FALLING before being caught by the floor again, and then would go back to their previous state.
Had a coordinate wrong by 1 pixel in goomba.rect..
Interestingly, after this: _sprite->setPosition(sf::Vector2f(_info.coordinates.left, _info.coordinates.top));
Then _info.coordinates.top + _info.coordinates.height and _sprite->getGlobalBounds().top + _sprite->getGlobalBounds().height were different.
The characters are still walking funny though.