FujiAPI / Fuji

Celeste 64 Mod Loader
29 stars 10 forks source link

Make the player actor more flexible #85

Open axiand opened 4 months ago

axiand commented 4 months ago

Please confirm the following

Describe your feature

Add a new Player? MainPlayer property to the world scene. This would point to a single player actor instance. Then replace all Get<Player>() calls where relevant.

Give player actors the following properties: bool Active (if false, silences all updates) bool ReceiveInput (controls input code) bool DoInteractions (controls interactions like springs, pickups, breakable blocks) bool DoPhysics (controls player movement physics)

Why should we implement this?

These changes would get rid of the one-player assumption of the game allowing for more predictable behaviour with multiple players. Modders would be able to get a lot more potential out of using the player actor for things like multiplayer mods, fancy player clone gameplay, etc.

Optional

axiand commented 3 months ago

This is sort of already half done in 90d3b971c758989ef6f8ed877d2e0d0df36bdbec but I'm probably gonna do the rest later because the player actor is incredibly complex