예제 #1
0
 def land(self):
     self.z = self.vz = self.az = 0
     self.njump = 0
     sound.playsound("splash")
     state.addsplash(self)
     if not settings.lowres:
         state.addsplash(self)
예제 #2
0
파일: ship.py 프로젝트: cosmologicon/unifac
	def land(self):
		self.z = self.vz = self.az = 0
		self.njump = 0
		sound.playsound("splash")
		state.addsplash(self)
		if not settings.lowres:
			state.addsplash(self)
예제 #3
0
	def think(self, dt):
		Decoration.think(self, dt)
		if self.z < 0 and self.vz < 0 and not self.landed:
			state.addsplash(self)
			self.landed = True
		self.theta = 0.1 * self.vz
예제 #4
0
파일: effect.py 프로젝트: wolmir/cristina
 def think(self, dt):
     Decoration.think(self, dt)
     if self.z < 0 and self.vz < 0 and not self.landed:
         state.addsplash(self)
         self.landed = True
     self.theta = 0.1 * self.vz