def __init__(self, width, height, frame_rate, name, title, server_host="localhost", server_port=20149): PygameSocketGame.__init__(self, title, width, height, frame_rate, server_host, server_port) self.name = name self.display = Display(width, height) self.control = Control(width, height) self.control.player_image = 'shooter3.png' #pygame.mixer.init() #pygame.mixer.music('display/sounds/background.wav') #pygame.mixer.music.play() sound_path = os.path.join('display', 'sounds', 'bac2.wav') pygame.mixer.Sound(sound_path).play(-1) return
def __init__(self, width, height, frame_rate, name, title, server_host="localhost", server_port=20149): PygameSocketGame.__init__(self, title, width, height, frame_rate, server_host, server_port) self.name = name self.display = Display(width, height) self.control = Control(width, height) self.control.player_image = "duck2.png" # music_path = os.path.join('display', 'music', 'LukHash_-_ARCADE_JOURNEYS.wav') # pygame.mixer.music(music_path).play(-1) return
def __init__(self, width, height, frame_rate, name, title, server_host="localhost", server_port=20149): PygameSocketGame.__init__(self, title, width, height, frame_rate, server_host, server_port) self.name = name self.display = Display(width, height) self.control = Control(width, height) return