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

Method easy_game

projects/PONG/main.py:228–238  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

226 pygame.display.flip()
227
228 def easy_game(self):
229 global created, FPS, started
230 if created:
231 create_ball()
232 ball.reset_ball()
233 started = 2
234 created = False
235 FPS = 110
236 pygame.draw.rect(WIN, accent_color, middle_strip)
237 cursor.update()
238 game_manager.run_game()
239
240 def med_game(self):
241 global FPS, ball_speed, created, started

Callers 1

start_gameMethod · 0.95

Calls 4

create_ballFunction · 0.85
run_gameMethod · 0.80
reset_ballMethod · 0.45
updateMethod · 0.45

Tested by

no test coverage detected