Survive2sunrisedemo.1.mp4
LIC Web Solutions
Web design & development · Long Island City, NY
A C++17 terminal survival game built with ncurses.
Disclaimer: This is an independent fan project inspired by the survival-horror genre and Five Nights at Freddy's mechanics. It is not affiliated with, endorsed by, or connected to Five Nights at Freddy's or its rights holders.
Survive until sunrise while managing limited battery power. Freddo approaches from the left, Chico from the right — close the correct doors to block them, but every closed door drains extra battery.
Freddo & Chico — They used to headline the pizzeria stage (Freddo on vocals, Chico on side acts). After closing they still roam: Freddo through the western halls toward your left door, Chico around the east and kitchens toward your right. Hold the matching door long enough and they retreat, but closed doors cost extra battery — and they get bolder as the night goes on.
Download a zip from GitHub Releases, extract the folder, and use the launcher inside:
| Platform | Download | How to start |
|---|---|---|
| Windows | console-fnaf-windows.zip |
Double-click PLAY.bat |
| macOS | console-fnaf-macos.zip |
Double-click Play.command |
See HOW_TO_PLAY.txt (Windows) or HOW_TO_PLAY_mac.txt (macOS) inside the zip for controls and troubleshooting.
macOS first launch: if macOS blocks the launcher, right-click Play.command → Open → Open once.
The macOS zip is built on a Mac with scripts/package-macos.sh before upload (same idea as the Windows packager).
A: Toggle the left doorD: Toggle the right doorQ: Quit
- C++17 compiler
- CMake 3.16+
- ncurses
CMake expects MSYS2 UCRT64 ncurses at C:/msys64/ucrt64 by default. Override if needed:
cmake -S . -B build -DNCURSES_ROOT=/path/to/ucrt64
cmake --build buildRun from an MSYS2/UCRT64 terminal or another ncurses-compatible terminal.
brew install cmake ncurses # macOS
cmake -S . -B build
cmake --build build
./build/console_fnafsrc/main.cpp- game loop and ncurses setupsrc/game_state.*- shared state and time/battery logicsrc/ai.*- animatronic AI (Freddo, Chico)src/input.*- keyboard handlingsrc/render.*- terminal UIscripts/package-windows.ps1- Windows release packagingscripts/package-macos.sh- macOS release packaging (run on a Mac)release/- launchers (PLAY.bat,Play.command) and player instructions
Contributions are welcome. See CONTRIBUTING.md for how to fork, build, and open a pull request.
This project is licensed under the MIT License.
L I C
Web Solutions
licwebsolutions.com · GitHub · hello@licwebsolutions.com