To move Bub around, we can detect the arrow keys in the update() function. Our draw() function is quite simple, drawing our background, then the platforms, our bubbles, and finally Bub, our little dragon. Each of the platform blocks are Actors which we put into a list before we start the main program. We’ll keep it simple for this example and have a border of walls and three levels of platform that we can define with a simple nested loop. To start with, we’ll need a set of platforms for our little dragon to run around on. Bubble Bobble brought us a whopping 100 levels to explore.įor our Pygame Zero sample this month, we’ll concentrate on the game’s bubble mechanics and see how we can fire them, push them around, and pop them as they float around the level.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |