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

Method objects

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

Source from the content-addressed store, hash-verified

253 self.condition = 10
254
255 def objects(self):
256 # Background
257 Display().windows.fill((0, 0, 0))
258 # Stars Background
259 self.background()
260 # Collision Box
261 self.collision_box()
262 # Space_Ship
263 Display().windows.blit(Display().spaceship, (self.x, self.y))
264 # Laser
265 self.fire_laser()
266 # Enemies
267 self.enemies_movement()
268 # Score
269 self.score_board()
270
271 def collision_box(self):
272 return pygame.Rect(

Callers

nothing calls this directly

Calls 6

backgroundMethod · 0.95
collision_boxMethod · 0.95
fire_laserMethod · 0.95
enemies_movementMethod · 0.95
score_boardMethod · 0.95
DisplayClass · 0.70

Tested by

no test coverage detected