nfagerlund / bevy-tablestakes

takin a new thing for a spin
0 stars 0 forks source link

Rework movement to prep for flexible player state machine #3

Closed nfagerlund closed 1 year ago

nfagerlund commented 1 year ago

That Maddy code I adapted is really meant for an OO paradigm, and some of its assumptions get a lil goofy in ECS land. I'd really like to factor the movement and collision out into a function I can call from multiple player states, and return collision info, like we did in the shaunjs tutorial... but I probably need to rethink some of those assumptions to do that!

(Needless to say, the GML version from the tutorial is even less suited to Rust world.)

nfagerlund commented 1 year ago

This is pretty much dealt with, see #4.