How to use the particle.Explosion function in particle

To help you get started, we’ve selected a few particle examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github strin / curriculum-deep-RL / pyrl / tasks / pyale / games / london / object.py View on Github external
def isBombed(self, data):
		"""Called when a superbomb hits the bomber"""
		self.kill()
		self.smoke.kill()
		Explosion(data, self.rect.center, 60)
		data.shakeScreen(20)
		sound.play('shoot down')
		pygame.time.wait(50)

		data.score += data.scoreValues['destroy bomber']
github strin / curriculum-deep-RL / pyrl / tasks / pyale / games / london / object.py View on Github external
def explode(self, data, shake=True):
		"""Explode the bomb, if shake=True shake the screen a little"""
		self.kill()
		self.smoke.kill()
		Explosion(data, self.rect.center, 40)
		if shake:
			data.shakeScreen(10)