Pacman (part 3)

Today I make the pacman have 3 lives and use blit() method draw 3 lives of Pacman on the bottom right of the screen and loading ghost images into the screen game. And make the Pacman power up active timer when eat big dot and make the ghost turn into another mode when Pacman power up. And I also make a check collision function to check for ghost valid pathing and turn checking.

– This code is draw 3 lives of Pacman on bottom right of the screen game.

– And 3 lives of Pacman are drawn on the screen.

– Next, I make a Ghost class and loading ghost images into the screen game. And make the ghost turn to another mode when Pacman power up.

– 3 ghost are in the screen game.

– This is how the ghost turn into another mode when Pacman power up.

– And this is check collisions function.

From the video, I learned that we can use blit() method to draw Pacman’s life. And learned how to make the ghost able to switch to another mode when Pacman powers up by using blit() as well.

Tags:

No Responses

Leave a Reply

Your email address will not be published. Required fields are marked *