This is an example of my new 3d engine Use UP and DOWN arrow to move your character up and down RIGHT and LEFT arrow to turn the camera CLICK to shoot SPACE to switch between first and third person
the engine works like a compass. When you spawn your facing direction 1, when the right key is pressed it changes the variable that is the direction by 1. Each barrier has a number assigned to it, 0-7. If its number is one bigger or smaller it switches to its angled costume and goes to the right or left. If its number is equal to the direction facing it shows it standard costume and goes to the center. Else it just hides the barrier. The enemies work the same but randomly set there number assigned to them. They can reload there gun off screen but must shoot on screen.