- Improved lighting
- Sound effects
To make the stars I simply created a VBO of 300 randomly placed vertecies, and render them as points. The shader I created has only an X and Y offset passed in as uniform variables. The stars wrap around by using only the decimal portion (from 0.0 to 0.9999).
In the previous post, lights were only casting circle shapes. In real life, most lights come from the ceiling, and spread out. I've added a few more possible shapes for the lights to emit. The doors emit green lights when unlocked, and orange for locked (red is reserved for more serious things). This helps the player see more clearly when a door is unlocked.
Adding sound was actually very easy, thanks to this post that I found on Stackoverflow. I'm mostly going to be using wav files, but the ability to dynamically create sounds is very interesting too.
Next up is triggering level transitions, and having more than one script for the whole game... and then maybe bears.