American Young Coder (AYC)

AYC logo
Loading Events

« All Events

  • This event has passed.

5 PM – Adv Python Game Dev – Gamas

September 3 @ 5:00 pm - 6:00 pm

Today We Did
  1. We continued with EnemyPathFinder class.
  2. We integrated EnemyPathFinder with EnemyTank class.
Homework
  1. Inside EnemyTank class, inside set_direction(self) method
    1. print the “path” to see the coordinates. The path is a List inside a List.
    2. Use for loop to go trough each element inside the “path”.
    3. Inside the for loop, get the coordinate by getting 2nd element (index 1).
    4. print circle by using, the x and y variables are from the step number 3
      pygame.draw.circle(self.screen, (252, 252, 252), (x * WALL_SIZE, y * WALL_SIZE), 5)

Details

Date:
September 3
Time:
5:00 pm - 6:00 pm
Verified by MonsterInsights