level complete

water animations and start new level
This commit is contained in:
Neal Finger
2023-02-05 14:05:23 -07:00
parent e03d74be36
commit bf910238b9
3 changed files with 64 additions and 4 deletions

View File

@@ -123,7 +123,7 @@ class PlayerAnimation:
# if plworldy < self.poslist[-1][self.POS_Y] + self.debugposrange:
# return
if plworldy < self.poslist[-1][self.POS_Y] + self.POS_RANGE:
if plworldy < self.poslist[-1][self.POS_Y] + random.randint(1, self.POS_RANGE):
return
### get new position