Sean-Nishi / M1Wengine

A action-adventure game developed with Python 3.11.1 and pygame. Complete missions before timer expires.
3 stars 0 forks source link

Refactor character update methods to not include good and bad sprites #347

Open Sean-Nishi opened 8 months ago

Sean-Nishi commented 8 months ago

https://www.geeksforgeeks.org/pass-by-reference-vs-value-in-python/

if object is mutable (list), is pass by reference if object is immutable (tuple), is pass by value

Remove two list parameters from character's children's update method. Should be "good_sprites" and "bad_sprites"