A Tale of Two Portals
The theme for this game jam was ‘Lost & Found‘.
For this 48 hour game jam I decided to make a game where you travel through Two portals to return objects that have gotten mixed up between the Wild West and a modern day city.
to achieve the portal effect I used a stencil shader to render part of each environment only when you are looking through a doorway. I remember one issue I had to deal with was the stencil buffer worked for both worlds but if you walked through one world and then turned around behind you you could see the entirety of the other world. because this was a 48 hour game jam the easiest solution was to duplicate the shader so I had one for each world and make it so to get to the modern world you had to walk up a set of subway stairs, that way if you looked back there was no way to see the other world.
One of my favorite puzzles I worked on for this game is when you are in the wild west portion and a cowboy challenges you to shoot a target 100 times in 10 seconds with a revolver. since this is impossible you have to go to the modern day city to find a machine gun that can shoot fast enough to beat the challenge.