This is my Pacman Game part 2. I’m still not done this game yet. Today I make the Pacman can eat the dot and add 10 points when Pacman eat 1 dot and add 50 points when it eat a big dot.
– This code is make the Pacman can eat the dots. It also add 10 when it eat 1 dot and add 50 when it eats big dot.
– And this is the Pacman eats the dots.
– And for this one is how to draw the score text on game screen.
– The score text has been drawn on the bottom left of the screen.
Today I’m learn that we can use blit() to copy the contents of one Surface onto another Surface. Like on screen.blit(pacman.png), it will copy the Pacman image and pop it up on screen game. Or it copy the text f’Score: {score text}’ and show it on screen. And this is my Pacman part 2, I hope to be able to finish this game next Friday.
No Responses