![]() ![]() _to(self.background, (120, y), line, pygame.Color('black')) Self.background = pygame.Surface((640, 480)) Also I have added a comment called #CHANGE to show the changes that were made to the previous one. ![]() So I have slightly modified the way boxes are rendered to fit words. Also looks like sloths original code does not adjust the size so rendering words would not work. Then iterate through that list and render them depending on what the current question is. To have different options for different questions, you can expand the self.choices list to be a 2D list. So you can iterate over the choices and draw them _to(screen, (rect.x+29, rect.y+29), str(self.choices), I have never used eetype before but seems like the rendering text is done using _to To the game scene class, you could add something like choices.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |