How anand-kamble/fortnide works
Fortnide is a browser-based third-person shooter prototype. Its visible startup initializes browser inputs and shared state, creates the Three.js scene and player, enables core updates, then mounts the React game UI; player controls feed movement and firearm actions into physics and game state. The graph captures documented building/shooting ambitions, while their implementation is not established by the sampled code. Edges are limited to README statements or source-index references and excerpts; undocumented wiring is omitted.
Main entry points: player_group.ts Player model and controls · App.tsx App bootstrap · global_variables.ts Shared variables · animator.ts Scene renderer
Components 23
Game startup
- App bootstrap
src/App.tsx - Scene initialization
src/core/render_engine/init.ts
Game interface
- React game view
src/UI/Render/Render.tsx - Game screens
src/UI/Screens - Weapon control
src/UI/Components/Weapon.tsx - Interface button
src/UI/Components/Button.tsx - Screen styling
src/UI/StyleSheets/TestScreen.ts
Player and weapons
- Player model and controls
src/core/render_engine/player_group.ts - Third-person camera
src/core/render_engine/set_third_person.ts - Animation updates
src/core/render_engine/update_frame.ts - Firearm behavior
src/core/Physics/Weapon/FireArm/index.ts
World simulation
- Physics engine
src/core/Physics/physics.ts - World and object methods
src/core/Physics/methods - Physics object types
src/core/Physics/modals.ts - Projectile motion
src/core/Physics/Projectile/index.ts
Runtime services
- Browser bridge
src/core/helpers/browser_initiator.ts - Shared variables
src/core/helpers/global_variables.ts - Core state API
src/core/index.ts - Game state manager
src/core/State Manager/index.ts - Scene renderer
src/core/render_engine/animator.ts - Input key mapping
src/core/input_keys/index.ts - Logging
src/Logger/index.ts
Other components
- Player
Connections 32
- Player → App bootstrap: opens game
README.md - App bootstrap → Browser bridge: initializes browser
src/App.tsx - App bootstrap → Scene initialization: initializes scene
src/App.tsx - App bootstrap → Player model and controls: creates player
src/App.tsx - App bootstrap → Core state API: enables updates
src/App.tsx - App bootstrap → React game view: mounts view
src/App.tsx - Browser bridge → Shared variables: updates inputs
src/core/helpers/browser_initiator.ts - Scene initialization → Physics engine: initializes physics
src/core/render_engine/init.ts - Scene initialization → Scene renderer: configures scene
src/core/render_engine/init.ts - Player model and controls → Browser bridge: registers controls
src/core/render_engine/player_group.ts - Player model and controls → Input key mapping: reads key mapping
src/core/render_engine/player_group.ts - Player model and controls → Shared variables: reads runtime values
src/core/render_engine/player_group.ts - Player model and controls → Physics engine: adds player object
src/core/render_engine/player_group.ts - Player model and controls → Game state manager: updates player state
src/core/render_engine/player_group.ts - Player model and controls → Third-person camera: sets camera target
src/core/render_engine/player_group.ts - Player model and controls → Scene renderer: registers frame callback
src/core/render_engine/player_group.ts - Third-person camera → Shared variables: reads camera settings
src/core/render_engine/set_third_person.ts - Third-person camera → Scene renderer: uses animator
src/core/render_engine/set_third_person.ts - Animation updates → Shared variables: reads global state
- Physics engine → Physics object types: uses object types
src/core/Physics/physics.ts - World and object methods → Physics object types: uses object types
src/core/Physics/methods/addObject.ts - Firearm behavior → Projectile motion: launches projectile
src/core/Physics/Weapon/FireArm/index.ts - Firearm behavior → Scene renderer: reads animator clock
src/core/Physics/Weapon/FireArm/index.ts - Firearm behavior → Game state manager: updates ammunition
src/core/Physics/Weapon/FireArm/index.ts - React game view → Game screens: renders screens
src/UI/Render/Render.tsx - React game view → Weapon control: renders weapon control
src/UI/Render/Render.tsx - Game screens → Interface button: renders start button
src/UI/Screens/TestScreen.tsx - Game screens → Screen styling: uses screen styles
src/UI/Screens/TestScreen.tsx - Interface button → Logging: logs sound errors
src/UI/Components/Button.tsx - Weapon control → Core state API: uses core API
src/UI/Components/Weapon.tsx - Player → Projectile motion: fires shots
README.md - Player → World and object methods: builds structures