American Young Coder (AYC)

AYC logo
Loading Events

« All Events

  • This event has passed.

7:30 PM – Adv Python Game Dev – Gamas

February 10 @ 7:30 pm - 8:30 pm

Today We Did
  1. We learned how to rotate turret properly by rotating in the middle of turret image.
Homework
  1. tan angle = (opposite side) / (adjacent side)
    1. tan angle = y/x
    2. angle = inverse tan(y/x)
  2. Find the coordinate of the mouse (mx, my).
  3. Find the coordinate of the tank (self.x, self.y)
  4. Find the y difference between the mouse and the tank.
  5. Find the x difference between the mouse and the tank.
  6. Google in the internet, how to do inverse tangent in python so you can find the angle.

Details

Date:
February 10
Time:
7:30 pm - 8:30 pm
Verified by MonsterInsights