Sliding Door

Due Wednesday, November 4

Using the collision detection interface, create sliding doors that slide open or closed when hit by a projectile, and a room that you can only enter by opening at least two doors. You don't have to model tracks, just move the doors to the side, or up, or down into the floor, or whatever you like. If it slides into the floor, make sure there's a way to close it, or have it close automatically after a delay, or something like that.

I suggest inheriting from FloorPanel for the door, since this already has collision support. Override report_collision to react differently, and add some way to track door state, open position, and closed position. Or, open with a fixed direction and distance, and then you'll only need open/closed status and not open and closed positions.

Find a texture for your door that's different from anything else in the game.