(self, code: int)
| 123 | self.selected = 0 |
| 124 | |
| 125 | def text(self, code: int): |
| 126 | options = ["Yes", "No"] |
| 127 | if code == 1: |
| 128 | return Text("Game Over", 90).display() |
| 129 | if code == 2: |
| 130 | return Text("Play Again?", 30).display() |
| 131 | if code == 3: |
| 132 | self.text_list = [Text(text, 25) for text in options] |
| 133 | self.text_list[0].selected = True |
| 134 | |
| 135 | def objects(self): |
| 136 | # Background |