Exemplo n.º 1
0
	def __init__(self, world, config):
		Object.__init__(self, world, config)
		self["collided"] = False
		self["counters"]["frame"] = self.world.game.fps
		self.rad = self["counters"]["frame"] * 3
Exemplo n.º 2
0
 def __init__(self, world, config):
     Object.__init__(self, world, config)
     self.img = pygame.image.load(os.path.join("objects", "ship", "images", "ship.bmp"))
     self.img.set_colorkey(self.img.get_at((0, 0)))
     if not "bomb" in self.config.keys():
         self["counters"]["bomb"] = 0
Exemplo n.º 3
0
	def collision(obj):
		Object.__init__(obj)

		self.kill()