nclud / 2013.beercamp.com

MIT License
0 stars 1 forks source link

Falling through the world #30

Closed peakpg closed 11 years ago

peakpg commented 11 years ago

When starting the game, sometimes characters will fall through the world.

btjones commented 11 years ago

Possibly related, most of the floors don't wrap around on the sides. So even though there is a floor on both the left and right side, when leaving out of the left side and entering the right side the character falls.

mikemorris commented 11 years ago

not related, but @peakpg fixed that bug.

mikemorris commented 11 years ago

falling through the world should now be fixed. the isSensor parameter on fixDef (used to create ALL entities, maybe want to refactor that at some point) wasn't being reset to false on Player entity creation, so characters were often being created as sensors (which do not collide in the physics engine, only detect collisions). fixed that in dde458176e40a48ae508769334bd5668da50de1e and added a catch to respawn anything that does happen to fall through the floor.