def __init__(self, remilia, Touhou): # self, ringCount=1, dVel=5, startVel=5, numBulletsInRing=10, bulletType="GenericBulletWhite", startAngle=0 self.LargeCircles = [ bullets.multiCircle(remilia, 1, 1, 2, 12, "SphereBulletRed", 6 * i) for i in xrange(20) ] self.WhiteCircles = [ bullets.multiCircle(remilia, 1, 1, 3.5, 24, "LargeBulletWhite", -4 * i) for i in xrange(32) ] pass
def __init__(self, remilia, Touhou): self.RedBullets = [ bullets.multiCircle(remilia, 1, 1, 2, 4, "TriangleBulletRed", -7 * i) for i in xrange(100) ] self.BlueBullets = [ bullets.multiCircle(remilia, 1, 1, 2, 4, "TriangleBulletBlue", +5 * i) for i in xrange(100) ] self.GenericCircles = [ bullets.multiCircle(remilia, 1, 1, 1.5, 20, "GenericBulletWhite", 30 * i) for i in xrange(40) ]
def __init__(self, remilia, Touhou): self.LargeCircles = [ bullets.multiCircle(remilia, 1, 1, 1.5, 10, "SphereBulletRed", -7 * i) for i in xrange(20) ] self.WhiteCircles = [ bullets.multiCircle(remilia, 1, 1, 3.5, 16, "LargeBulletWhite", +5 * i) for i in xrange(32) ] self.RedBullets = [ bullets.multiCircle(remilia, 1, 1, 2, 4, "TriangleBulletRed", -9 * i) for i in xrange(100) ] self.BlueBullets = [ bullets.multiCircle(remilia, 1, 1, 2, 4, "TriangleBulletBlue", +7 * i) for i in xrange(100) ]
def initFairyAttributes(self, pathType, **kwargs): ##### Path parsing ##### # Exact attributes are parsed within the path inits themselves in the paths file self.path = eval("paths."+str(pathType)+"(**kwargs)") ##### Shot type parsing ##### self.shotType = kwargs["shotType"] if "shotType" in kwargs else "random" self.shotFreq = kwargs["shotFreq"] if "shotFreq" in kwargs else "1" #from 1 to 10 self.shotVel = kwargs["shotVel"] if "shotVel" in kwargs else 1 self.ringCount = kwargs["ringCount"] if "ringCount" in kwargs else 2 self.numShots = kwargs["numShots"] if "numShots" in kwargs else 20 self.shotDVel = kwargs["shotDVel"] if "shotDVel" in kwargs else 0.1 self.shotAngle = kwargs["shotAngle"] if "shotAngle" in kwargs else 90 self.bulletType = kwargs["bulletType"] if "bulletType" in kwargs else "GenericBulletWhite" self.shots = list() if self.shotType == "ring": self.shots = bullets.multiCircle(self, self.ringCount, self.shotDVel, self.shotVel, self.numShots, self.bulletType) if self.shotType == "fanSpread": self.shots = bullets.fanSpread(self, self.shotAngle, self.numShots, self.shotVel, self.bulletType)