Actor behaviour needs to be more modular, and not hardcoded into the sprite node classes. Let’s try to refactor everything using an Entity–Component architecture instead. This will take a while and break everything.