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)
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