kyranstar / Hunt-The-Wumpus

6 stars 0 forks source link

Fix pit collision reaction and image updates #20

Closed WasabiFan closed 9 years ago

WasabiFan commented 9 years ago

This is a two-part issue.

First, we are currently inefficiently iterating over the cave and updating the layout images according to the room array. We should probably remove the gold and pit images from the room layout and instead only use a single image that we choose at draw time based on the actual room object.

Second, when we hit a bat we immediately teleport to our new location and the bats relocate. This means that in normal operation you never actually see the bats. We should make it so that the bat reaction occurs after the animation to enter the room has mostly completed.

WasabiFan commented 9 years ago

I have fixed the inefficiency issue, now we just need to figure out the timing delay thing.