MCPcopy Create free account
hub / github.com/Mrinank-Bhowmick/python-beginner-projects / text

Method text

projects/Space Shooter/main.py:125–133  ·  view source on GitHub ↗
(self, code: int)

Source from the content-addressed store, hash-verified

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

Callers 2

objectsMethod · 0.95
executeMethod · 0.95

Calls 2

TextClass · 0.85
displayMethod · 0.45

Tested by

no test coverage detected