DAMMIT SAKURAI! NOW I HAVE TO ADD MORE LINES OF CODE TO THE GAME THAT I'M ALREADY BURNT OUT ON!

invidious.poast.org/watch?v=Od

Freeze frames are probably something I can do, but no way in hell am I doing screen shakes or slow motion. Screen shakes would require me to mess with viewports and I really don't feel like getting in to that. Slow motion would require me to either reduce the framerate (which I don't know how to do in MonoGame) or slow down every single object.

@xianc78 Are you not managing changes in the game relative to a dt? Having your logic advance statically per frame isn't a good idea

Monogame should be giving you something like an update(dt) callback that gives you the deltatime (time since last frame, rendering + vsync)

All you have to do for slow motion is to have a multiplier for it

player.x = player.x + (player.velocity * player.speed * dt * speed)

Follow

@xianc78 I would also recommend that you do actually take the time to add a camera offset because slight camera smoothing adds a lot of juice to the game

You have scrolling levels, yeah? So you should already have a camera. An offset and a increment to get close to the "goal" location on the player relative to how far away the camera is from the goal is only a couple lines but adds a lot. Then for shake you randomise it, hints in video #2

Also:
youtu.be/Fy0aCDmgnxg
youtu.be/tu-Qe66AvtY

· · Web · 0 · 0 · 2
Sign in to participate in the conversation
Game Liberty Mastodon

Mainly gaming/nerd instance for people who value free speech. Everyone is welcome.