TheSeekerGame / TheSeeker

Metroidvania game in Bevy
68 stars 15 forks source link

Haptics System with Screen Shake Effect #31

Open inodentry opened 4 months ago

inodentry commented 4 months ago

Here is a nice video to watch for some things to keep in mind: https://www.youtube.com/watch?v=fn3hIPLbSn8

c12hz commented 4 months ago

I watched the video, it's a great reference!

For the screenshake that we need currently (shake for every time player deals damage) we need just a very slight and short shake, so I think we don't need to do any fancy stuff. I think just picking a random position for 1 tick, then opposite direction for next tick, and then 3rd tick already back to center. It's meant to feel like a tiny vibration rather than a proper shake.

Destravous already implemented a screen shake (haven't tested it yet) so we can use that one for the alpha, and then Ida I'm guessing would be more interested in a more generalized screenshake + haptics system.

So I'm moving this to Low Priority, for after alpha.