예제 #1
0
파일: main.py 프로젝트: Aztr/Centripetal
	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)
예제 #2
0
파일: main.py 프로젝트: cnsoft/Centripetal
    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)
예제 #3
0
 def cleanup(self, *args):
     glLineWidth(1)
예제 #4
0
 def prepare(self, *args):
     glLineWidth(self.width)