How verdessandu12-wq/fnaf works
This is a Raylib psychological-horror game. The main workflow is menu selection into the office gameplay, with keyboard-driven camera, tablet, and night-ending states; the main loop owns updates and rendering. Animatronic movement and camera-room visibility form a separate gameplay system. The README provides no feature detail, so this map follows the sampled runtime and named modules; some small declared subsystems, especially the screamer, have no demonstrated runtime connection.
Main entry points: main.cpp Game Loop · Ixel.cpp Ixel Animatronic · camera.cpp Room Cameras · sixam.cpp 6 AM Ending
Components 16
Game Flow
- Game Loop
src/main.cpp - 6 AM Ending
src/sixam.cpp - Screamer
src/screamer.cpp
Night Gameplay
- Office Gameplay
src/gameplay.cpp - Room Cameras
src/camera.cpp - Ixel Animatronic
src/animatronics/Ixel.cpp - Animatronic Base
src/animatronics/animatronics.hpp
Game Presentation
- Menu
src/menu.cpp - Tablet Pad
src/pad.cpp
Shared Rendering
- Shader Wrapper
src/shader.cpp - Image Types
src/sablonClass.hpp - Image Loading
src/stb_image.h - Animatronic Art
assets/animatronics - Shader Effects
shader - Ambient Music
song/ambient.mp3
Other components
- Player
Connections 12
- Player → Game Loop: starts
- Game Loop → Menu: updates, renders
src/main.cpp - Game Loop → Office Gameplay: updates, renders
src/main.cpp - Game Loop → Room Cameras: switches, renders
src/main.cpp - Game Loop → Ixel Animatronic: updates, renders
src/main.cpp - Game Loop → Tablet Pad: updates, animates
src/main.cpp - Game Loop → 6 AM Ending: updates, renders
src/main.cpp - Ixel Animatronic → Room Cameras: checks room
src/animatronics/Ixel.cpp - Ixel Animatronic → Animatronic Base: implements
- Ixel Animatronic → Shader Effects: loads effect
src/animatronics/Ixel.cpp - Ixel Animatronic → Animatronic Art: loads textures
src/animatronics/Ixel.cpp - Game Loop → Ambient Music: loads music
src/main.cpp