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

Method med_game

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

Source from the content-addressed store, hash-verified

238 game_manager.run_game()
239
240 def med_game(self):
241 global FPS, ball_speed, created, started
242 opponent.speed = 8
243 if created:
244 create_ball()
245 ball.reset_ball()
246 started = 2
247 created = False
248 FPS = 140
249 pygame.draw.rect(WIN, accent_color, middle_strip)
250 cursor.update()
251 game_manager.run_game()
252
253 def hard_game(self):
254 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