github

Week 2 - Moving About

It has already been a week! I actually worked on several things this week! But the one I want to talk about is something I have been working on for a while.

THE controller

I have been working on this thing for a while... Just watch the videos...

It has a stupidly complicated 'Dynamic Entity Property System' which actually was a system I designed years ago for another game that never got anywhere meaningful.

Here is a rundown on how it does what it does

  • Camera (and only the camera) is physics interpolated which makes the movement very smooth.
  • There is a resource called 'PlayerProperties' nothing writes to this on runtime
  • Current running properties are held in a 'RuntimePlayerProperties' object.
  • Any behavior, such as jumping, sprinting, shooting, climbing, etc. reads this object.
  • Behaviors apply 'effects' and only effects modify the runtime behavior.
  • Behaviors can search and find each other so any behavior can interrupt or give state another behavior. (Crouch sliding for example)
  • Every effect has an activation threshold, rise timer, decay timer, alongside an operator on how they are applied; multiplicative, additive etc.
  • The effect can be anything realistically, even postprocessing can be an effect, like the screen going red when player gets hurt.
  • Since effects know nothing about the underlying behavior and only look at the modified object when reading, nothing collides.

Anyway that's about it. cya.