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

Method objects

projects/Space Shooter/main.py:91–104  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

89 exit()
90
91 def objects(self):
92 spacing = 50
93 # Display the background
94 Display().windows.blit(Display().background, (0, 0))
95 # Display the text
96 for text in self.text_list:
97 Display().windows.blit(
98 text.display(),
99 (
100 (Display().windows.get_width() - text.display().get_width()) / 2,
101 spacing,
102 ),
103 )
104 spacing += 100
105
106 def execute(self):
107 self.text()

Callers 2

executeMethod · 0.95
executeMethod · 0.45

Calls 2

DisplayClass · 0.70
displayMethod · 0.45

Tested by

no test coverage detected