FNAF Anniversary

Responsibilities

  • Designed and implemented multiple interactive mini-games

  • Developed a modular system that allows mini-games to be rendered onto an in-game TV screens and played seamlessly.

  • Integrated Cinemachine with custom C# scripting to create smooth, cinematic camera transitions between gameplay states and viewpoints.

  • Designed and implemented an interactive crawl-and-repair feature allowing players to traverse an environment and fix a security camera through a screwing/unscrewing minigame.

Details

  • Team Size: 8

  • Role: Tech Designer

  • Engine: Unity

An Exciting Prospect…

Peter Perri one day told me he had an incredible opportunity. A Five Nights at Freddy’s youtuber named Unwithered Truth had created a Youtube video pitching the idea of a reboot of the original game with more lore and mechanics than the original. The video was of exceptionally high quality. Peter left a comment showing interest in turning this pitch into a reality, and Unwithered Truth took him up on the offer!

After development had begun, Peter kept showing me progress that was being made and it was truly incredible. The quality of the game was through the roof. Eventually, I asked Peter if he was interested in having me join in as an extra hand in the Tech Design department. He graciously accepted this proposal and I got to work right away.

Documenting and Rapid Prototyping

I was tasked with documenting and prototyping maintenance tasks you perform in the game during the nights. This was my bread and butter. I got design docs up and running for the four planned tasks. I included a current status bar to track the state of the task (if it was in design, in prototyping, or ready for testing). I also made sure to include a Summary and Moment-to-Moment gameplay description to remind any reader what the current design plan was. It was important to be descriptive as this was an asynchronous project! All our sketches and concept images we found online were included here to portray the look and feel of the task.

Now it was time to prototype. I luckily have had experience jumping into pre-existing code bases so I had a good idea on how to snoop around and find what was important. It wasn’t too long before I had a working Red Light-Green Light minigame to showoff!

Maintenance Tasks

I implemented our first maintenance task to repair a camera that was sabotaged. You must crawl through the kitchen in a game of red-light green-light to get to the camera without getting caught. Once there, you unscrew the plugs and plug them into the correct color matching port.

It sounds simple. It was not. The Maintenance Task itself and Red Light-Green Light game are simple, they are setup with coroutines that handle a game loop. The issue was with player input.

Changing how inputs are received and handled required a massive refactor to the player input code that had already been written. We ended up moving from tightly coupled player inputs and functions to the Unity Input Map system. This allowed us to change the input callbacks based on the current game context. Sitting at the computer in the office is its own Input Map, doing a Maintenance task is another. This gave us incredible flexibility in transitioning from one set of inputs and callbacks to another. It was also very important for the minigames played on the TV when the player character is at home.

A Playable TV!

We wanted to be able to play minigames on a TV screen inside the protagonists house. This seemed like a very complex task at first but with some scene loading/unloading, layering, and player input refactoring I was able to make it so that we could seamlessly play minigames or watch videos on a TV screen! It sets the target texture of the camera inside the minigame scene to a render texture on the TV screen. For the TV I created the Pirate Foxy minigame where the player dodges icebergs and shoots at incoming pirate enemies.

Reflection

It has been an incredible opportunity to get to work on this game. I hope fans enjoy it when it releases! It is still in development and I no longer work on it due to now being a part of EA but I believe it will cross the finish line to much success.