MCPcopy Index your code
hub / github.com/geekcomputers/Python / reset_game

Function reset_game

Street_Fighter/src/main.py:328–342  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

326
327
328def reset_game():
329 global fighter_1, fighter_2
330 fighter_1 = Fighter(
331 1,
332 200,
333 310,
334 False,
335 WARRIOR_DATA,
336 warrior_sheet,
337 WARRIOR_ANIMATION_STEPS,
338 sword_fx,
339 )
340 fighter_2 = Fighter(
341 2, 700, 310, True, WIZARD_DATA, wizard_sheet, WIZARD_ANIMATION_STEPS, magic_fx
342 )
343
344
345def draw_health_bar(health, x, y):

Callers 1

game_loopFunction · 0.85

Calls 1

FighterClass · 0.90

Tested by

no test coverage detected