« All Events
7:30 PM – Adv Python Game Dev – Gamas
February 10 @ 7:30 pm - 8:30 pm
Today We Did
- We learned how to rotate turret properly by rotating in the middle of turret image.
Homework
- tan angle = (opposite side) / (adjacent side)
- tan angle = y/x
- angle = inverse tan(y/x)
- Find the coordinate of the mouse (mx, my).
- Find the coordinate of the tank (self.x, self.y)
- Find the y difference between the mouse and the tank.
- Find the x difference between the mouse and the tank.
- Google in the internet, how to do inverse tangent in python so you can find the angle.