def start(self): # are these necessary? no time to find out!!!!!! self.width = Window.width self.height = Window.height self.size = Window.size for i in ["hit", "hit_2", "die"]: if i not in self.sounds: self.sounds[i] = SoundLoader.load(i + ".ogg") self.sounds[i].volume = 0.8 self.n_rings = 3 self.num_segments = 10 self.generate_level() self.paddle.move(pi/2) self.ball.setup() self.killspace.pos = (cx, cy) self.score = 0 self.level_num = 0 with self.canvas: glLineWidth(3)
def start(self): # are these necessary? no time to find out!!!!!! self.width = Window.width self.height = Window.height self.size = Window.size for i in ["hit", "hit_2", "die"]: if i not in self.sounds: self.sounds[i] = SoundLoader.load(i + ".ogg") self.sounds[i].volume = 0.8 self.n_rings = 3 self.num_segments = 10 self.generate_level() self.paddle.move(pi / 2) self.ball.setup() self.killspace.pos = (cx, cy) self.score = 0 self.level_num = 0 with self.canvas: glLineWidth(3)
def cleanup(self, *args): glLineWidth(1)
def prepare(self, *args): glLineWidth(self.width)