Thursday, October 2, 2014

All about the fishes

Fixed fish jump calculation. The problem was we gave Java’s Math.sin() function an angle in degrees, when it wanted it in radians.
Then Axel switched our placeholder fish image to the fish texture that Andreas made and also changed the hitboxes of the fish from just one big rectangle to two smaller ones. This might not be enough for hitboxes though, we might need to revisit this in the future.
Frog and fish with hitboxes in red.