# pygame.mixer.Channel(0).play(bg_music_sound) bg_music_sound.set_volume(0.3) bg_music_sound.play() for wolf in monsters: wolf.draw_me() pygame_screen.blit(wolf.img, [wolf.x, wolf.y]) for arrow in arrows: arrow.update_me() pygame_screen.blit(arrow.img, [arrow.x, arrow.y]) arrow_hit = groupcollide(arrows, monsters, True, True) if arrow_hit: monsters.add(Wolf()) monster_hit = groupcollide(monsters, walls, False, False) # print monster_hit if monster_hit: # for wolf in monsters: for attack_wolf in monster_hit: attack_wolf.attack() if wolf.img == wolf_images[0]: print "hello" wall.take_damage(wolf.power) print wall.health if game_start == False: start_button.setup_message() start_button.draw_button() if not wall.is_alive(): gameOn = False # pygame_screen.blit(wall.img, [wall.x, wall.y]) pygame.display.flip()