« All Events
5 PM – Adv Python Game Dev – Gamas
September 3 @ 5:00 pm - 6:00 pm
Today We Did
- We continued with EnemyPathFinder class.
- We integrated EnemyPathFinder with EnemyTank class.
Homework
- Inside EnemyTank class, inside set_direction(self) method
- print the “path” to see the coordinates. The path is a List inside a List.
- Use for loop to go trough each element inside the “path”.
- Inside the for loop, get the coordinate by getting 2nd element (index 1).
- 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)