Programming Thread

Viewing single post

Started by the-pi-guy, Mar 13, 2016, 10:39 PM

previous topic - next topic

the-pi-guy

I had a fun little bug this morning.

Was playing the game and I noticed that the collision detection only worked once.   So I was making sure the wait variable was getting assigned correctly.  Everything seemed correct. 

Turned out I had two bugs. 

The first was that the villain would get thrown upwards (as intended) but they stayed there. 

How did not notice? 
In with the second bug the "villains" were not getting drawn properly.  The modelview matrix not take into account the height of the villain. 

So the zombie was in the air, but still being drawn on the ground.

Thought it was fun how two bugs worked together so well to look like a bug somewhere else.