RamsesCaesar / CatAmongBirds

A game where you hunt birds as a cat.
MIT License
4 stars 1 forks source link

Fix inheritance/dependencies of Stats.gd #53

Open RamsesCaesar opened 1 year ago

RamsesCaesar commented 1 year ago

Both the cat and the birds have their own instance of Stats.gd. At the moment, this means that birds have a whole lot of redundant code they use. I added the counter for birds and coins to Stats.gd because I didn't fully understand how the file was meant to be used in the original tutorial version of this game. Also, PlayerStats.tscn is a singleton, which isn't a good design element for my modular, encapsulated, object-oriented vision of this game.

RamsesCaesar commented 1 year ago

A simple path to solving this issue is to look at the original tutorial that Cat Among Birds is based on. Compare this video for example.