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

Method hard_game

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

Source from the content-addressed store, hash-verified

251 game_manager.run_game()
252
253 def hard_game(self):
254 global FPS, ball_speed, created, started
255 opponent.speed = 10
256 if created:
257 create_ball()
258 ball.reset_ball()
259 started = 2
260 created = False
261 ball_speed = 20
262 FPS = 170
263 pygame.draw.rect(WIN, accent_color, middle_strip)
264 cursor.update()
265 game_manager.run_game()
266
267
268def create_ball():

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