Added splash effects
This commit is contained in:
parent
b09d747efe
commit
b6af2d4287
BIN
gamedata/assets/particles/splash/0.png
Normal file
BIN
gamedata/assets/particles/splash/0.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 657 B |
BIN
gamedata/assets/particles/splash/1.png
Normal file
BIN
gamedata/assets/particles/splash/1.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 708 B |
BIN
gamedata/assets/particles/splash/2.png
Normal file
BIN
gamedata/assets/particles/splash/2.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 657 B |
BIN
gamedata/assets/particles/splash/3.png
Normal file
BIN
gamedata/assets/particles/splash/3.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 657 B |
@ -33,6 +33,7 @@ class Player(Movable):
|
||||
self.canhit = False
|
||||
|
||||
self.dustparticles = game.getSpriteDir("particles/dust/")
|
||||
self.splashparticles = game.getSpriteDir("particles/splash/")
|
||||
|
||||
self.speed = 200
|
||||
|
||||
@ -79,6 +80,9 @@ class Player(Movable):
|
||||
# Décellerer
|
||||
self.canfastfall = False
|
||||
self.verspd *= 0.9
|
||||
# Spawn splash particles
|
||||
self.game.addParticle(self.splashparticles,self.rect.left-5,self.water.rect.top-5,fps=8)
|
||||
self.game.addParticle(self.splashparticles,self.rect.right+5,self.water.rect.top-5,flipx=True,fps=8)
|
||||
else:
|
||||
if self.gravityway == -1:
|
||||
self.gravityway = 1
|
||||
|
Loading…
Reference in New Issue
Block a user