Пример #1
0
	def onUpdate(self):
		super().onUpdate()
		self.mainLauncher.update()
		self.optionManager.update()
		self.lockManager.update()
		self.drawManager.update()
		
		if self.isSpAttacking:
			self.spFrameCount -= 1
			if not self.isSpAttacking:
				self._spFinished()
			elif self.spFrameCount == 60:
				self.drawManager.spFinishing()
		
		if self.spFinishedForceFrameCount > 0:
			circle = Std.Hit.CircleI(self.position, 400)
			Auxs.applyExRadialForceToBullets(circle, 0.3)
			self.spFinishedForceFrameCount -= 1
			if self.spFinishedForceFrameCount == 0:
				self.spBulletDestructionFrameCount = self.SP_BULLET_DESTRUCTION_FRAME_NUM
		if self.spBulletDestructionFrameCount > 0:
			Auxs.destructBullets()
			self.spBulletDestructionFrameCount -= 1
Пример #2
0
	def applySpFinishedForce(self):
		circle = Std.Hit.CircleI(self.position, 400)
		Auxs.applyExRadialForceToBullets(circle, 0.3)