I recently decided to start working on a Top-Down Action game in the same vein as Mr. Shifty or Hotline Miami. I want to add this into my game because it’s a required feature for these type of fast paced hard games.
My issue is since this is such a fundamental aspect of the game I’d like to make sure it’s not done in a roundabout way but rather is done in a very logical and clean way.
The key features if you don’t know Hotline Miami or Mr. Shifty is:
-
Press and hold a button (generally shift) and as you move your cursor further from where the player is (who’s by default always in the center of the screen and the camera follows where the player goes).
-
Of course there is also a limit to how far to look which is just some sort of variable so you can scale it to not go past the player.
Any and all suggestions on best practices in implementing this would be appreciated whether it be actual C# or just your thoughts.
Thank you.