mcdonaldduncan / Freebooter

Columbia College Chicago Senior Capstone
4 stars 0 forks source link

Make enemies ragdoll rather than destroying them after defeating them #77

Closed Sebp23 closed 1 year ago

Sebp23 commented 1 year ago

Currently, enemy objects get destroyed when they are defeated by the player. This ends up in performance drops cause of the garbage collection. A better way to handle this issue might be to instead have enemies ragdoll when defeated and add a little force in the direction the player is facing.