Beispiel #1
0
	def setup(self):
		from objs.ghost import OBJECTS
		from objs.ghost import MULT_X
		from objs.ghost import MULT_Y

		self.hasAnimationThread = True
		self.scale = self.SCALE_MIN
		self.scaleDirec = True
		self.theta = 1.0
		self.thetaDirec = True

		self.blankingSamplePts = 20
		self.trackingSamplePts = 30

		objCoords = importObj(OBJECTS,
				MULT_X/3.0, MULT_Y/3.0)

		for i in range(len(objCoords)):
			coords = objCoords[i]

			obj = SvgPath(coords=coords)
			obj.jitter = False
			obj.scale = self.scale
			self.objects.append(obj)
			obj.xVel = 600
			obj.yVel = 600
Beispiel #2
0
		def importBat():
			from objs.shamrock import OBJECTS
			from objs.shamrock import MULT_X
			from objs.shamrock import MULT_Y

			objCoords = importObj(OBJECTS,
					MULT_X/3.0, MULT_Y/3.0)

			coords = objCoords[0]

			obj = SvgPath(coords=coords)
			obj.jitter = False
			return obj
Beispiel #3
0
	def get(self, k):
		if k in self:
			return self[k]

		# FIXME: Definitely a better way to do this...
		exec "from objs.%s import OBJECTS" % k
		exec "from objs.%s import MULT_X" % k
		exec "from objs.%s import MULT_Y" % k

		coordSets = importObj(OBJECTS, MULT_X, MULT_Y)
		self[k] = coordSets

		return coordSets
Beispiel #4
0
	def setup(self):
		from objs.awesome import OBJECTS
		from objs.awesome import MULT_X
		from objs.awesome import MULT_Y

		self.hasAnimationThread = True
		self.scale = self.SCALE_MIN
		self.scaleDirec = True
		self.theta = 1.0
		self.thetaDirec = True

		objCoords = importObj(OBJECTS, MULT_X/3.0, MULT_Y/3.0)

		for i in range(len(objCoords)):
			coords = objCoords[i]

			obj = SvgPath(coords=coords)
			obj.jitter = False
			obj.scale = self.scale
			self.objects.append(obj)