#NEWLINE# def begin_round( * args ) : #NEWLINE# #INDENT# global asteroids #NEWLINE# global bullets #NEWLINE# global animations #NEWLINE# global in_game #NEWLINE# asteroids = [ ] #NEWLINE# for i in range ( INITIAL_ASTEROIDS [ difficulty ] ) : #NEWLINE# #INDENT# x = ( random . random ( ) * ARENA_WIDTH ) #NEWLINE# y = ( random . random ( ) * ARENA_HEIGHT ) #NEWLINE# asteroids . append ( Asteroid ( asteroid_sizes [ ( - 1 ) ] , x , y , wrapping_batch ) ) #NEWLINE# #UNINDENT# for bullet in bullets : #NEWLINE# #INDENT# bullet . delete ( ) #NEWLINE# #UNINDENT# for animation in animations : #NEWLINE# #INDENT# animation . delete ( ) #NEWLINE# #UNINDENT# bullets = [ ] #NEWLINE# animations = [ ] #NEWLINE# in_game = True #NEWLINE# set_overlay ( None ) #NEWLINE# pyglet . clock . schedule_once ( begin_play , BEGIN_PLAY_DELAY )