thetawavegame / thetawave

A physics based, space shooter game made with Rust and the Bevy engine.
https://thetawave.metalmancy.tech
MIT License
161 stars 9 forks source link

Make player rotate with movement #141

Closed LordDeatHunter closed 7 months ago

LordDeatHunter commented 7 months ago

thetawave_7RH5OFXIyc thetawave_bjNxzli7OC

LordDeatHunter commented 7 months ago

Seems like with the movement+rotation separation, it applies the rotation to everything. It looks cool on some enemies, but there are issues with the rockets (not homing anymore) and the walls (their rotation defaults to horizontal). Should I make the rotation player-specific, or should I make a new "tiltable" component?

cdsupina commented 7 months ago

Seems like with the movement+rotation separation, it applies the rotation to everything. It looks cool on some enemies, but there are issues with the rockets (not homing anymore) and the walls (their rotation defaults to horizontal). Should I make the rotation player-specific, or should I make a new "tiltable" component?

I like the idea of making a it a component. There are certainly some mobs where it wouldn't make much sense.