jpfed / Adrift

You are a space pilot lost in an endless maze of extraterrestrial caverns. Can you find your way home?
http://www.ludumdare.com/compo/author/jpfed/
2 stars 3 forks source link

Move specialized collision code outside of state.game #24

Closed jpfed closed 14 years ago

jpfed commented 14 years ago

GameObject can define tryCollide etc. Individual classes should provide collision handlers to state.game (not during object instantiation; it can happen outside each class's table, so that when the object's source file gets required, the collision handler is registered once.)

dgfitch commented 14 years ago

Problem here is that the order actually matters, and a lot of the interactions require that things are already loaded. I've moved it out of state.game and into objects, but if you have better ideas for how to clean it up further, keep going...