American Young Coder

AYC logo
Loading Events

« All Events

  • This event has passed.

6 PM – Advanced Python Game Development

February 18, 2021 @ 6:00 pm - 7:00 pm

  1. We did the code where if the tank hit the wall, it will not be able to go through.
  2. We started with the bullet sprite.
  3. Homework:
    1. Finish the bullet sprite, integrate it to the main.py.
    2. Add the code so when the player click on the mouse, the bullet will be launched to the right.
    3. Make a good map that is suitable for our screen.
    4. In order for us to be able to launch our bullet according to where we are clicking on the screen, we need to know the angle of the mouse pointer location in respect to the player (tank) location:
      1. Watch this video: https://www.youtube.com/watch?v=ElewYKmRQNw
      2. Study how to find an angle between 2 points in a triangle by reading the answer to this page: https://math.stackexchange.com/questions/707673/find-angle-in-degrees-from-one-point-to-another-in-2d-space

Details

Date:
February 18, 2021
Time:
6:00 pm - 7:00 pm
Event Categories:
,