Esempio n. 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)
Esempio n. 2
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)
Esempio n. 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
Esempio n. 4
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