sillypantscoder / pygame_platformer_2

Pygame Platformer 2
2 stars 0 forks source link

Add fluids #7

Closed sillypantscoder closed 2 years ago

sillypantscoder commented 2 years ago

Add water, lava? Water should flow and push entities around, lava should kill things (e.g. Entity.die() ). Would also be a good idea to redefine Entity.die() on Player, so that walking into lava won't exit the game. Maybe also remove functionality to respawn entities at the top, and instead include this as Player.die()?

Another good idea would be to have lava decrease health (#6) or set them on fire. If it did set them on fire, water should extinguish them.

sillypantscoder commented 2 years ago

Done! Added water natively and added support for custom blocks & fluids. Soon, I'm going to add extensions, which you can use to modify generators, blocks, and textures. I am going to include a "lava" extension. Have fun!