|
|
|
|
|
by kibbi
749 days ago
|
|
Did your game require realistic physics collisions? If not, this might be unnecessary complexity. Almost no 2D shoot'em up game before 2000, and very few afterwards, go this route. Here's the common method to make a shmup with very simple rectangle comparisons: https://kidscancode.org/blog/2016/08/pygame_shmup_part_3/ But if your space debris objects are supposed to collide and agglomerate realistically, and if the player ships are supposed to have difficulty pushing a cluster of heavy objects out of the way, then using a physics library is sensible. |
|
They are quite optimized and performant libaries already and there are tons of tutorials for box2d out there (thanks to iforce).
You just add some shapes of your liking and call world.step