Posted July 13, 2021 by Wauchope
So it's been a few days since my last somewhat significant update. The last one was a quick experimental push to allow someone to test the game, so I don't really count that. I've been hard at work revamping the camera system in order to respond to player feedback, which has also left me on a slight detour into adding a settings and pause menu into the game. Lets top it off with a brand new, fully animated and textured player model! I've added an afro and glasses to the player model to help give you a better sense of which way is forwards.
The new camera system has been a lot harder to implement than I originally thought it would be. I think this iteration is perhaps my fifth or sixth rewrite of it but it's slowly coming together. I'll add or remove parts of it as the need arises, although one feature I want to add into it is increasing the pitch slightly when you're coming close to an edge. This'll help you see how close you are to the edge, along with giving a better perspective of the obstacles that lay ahead of you.
CHANGELOG
Features added:
The player model has been updated to accompany the new camera system. There was a dire need for a better sense of which direction is forward. This change is both fun and functional and has honestly made me giggle more times than I'd like to admit.
New Camera Control System:
Completely reworked how the camera controls operate. The position of the camera is now derived from three values. Distance, pitch (up/down) and yaw (left/right). Some simple trigonometry allows the game to calculate the position of the camera from these. Fun for you, but not for me.
A first iteration for camera obstruction detection has also been implemented. If an obstruction lies between the derived camera position and the player, then the camera will attempt to steer its way around this. It's not quite perfect yet, and sometimes decides to just clip through walls but hey, it's a start.
Currently, there's two types of obstruction detection which have been implemented.
Obstruction detection is halted for 3 seconds if you decide to move the camera. This is to prevent the automated system from attempting to fight control away from the player. YOU HAVE PRIORITY!
Pause Menu:
Press P or Escape to pause the game. This is mainly to allow you to adjust settings during gameplay. Not quite a "true pause" as things still move in the background, but currently that isn't really an issue and is quite a simple fix.
Settings Menu: