Pygame 9 is out for the week: there is a little game where one tries
to have the dog Aspen collide with the food bowl before it goes off-screen.
Pretty much used the code as given, although I chose the prettier pic of
Aspen, and the more colorful bowl. Also chose not to have the lives number
totally to the right. I find things more restful like this.
Did wonder, though, about the writing text to screen code. What is that True
flag about. It turns out, it activates anti-aliasing and makes for a smoother image.
Also wondered why we are rendering text from Font(). Turns out this is a shortcut.
One could also do it from graphics, but it might be more work...
No comments:
Post a Comment