How mrgoodgreen/3dferm works
Arina’s Farm is a 3D idle-arcade farming game for Yandex Games. The player moves Arina through fields and animal or processing stations, carries products to market stalls, and collects customer coins; progression unlocks further production chains, helpers, upgrades, story chapters, and village orders. The runtime also covers localized UI, saved progress, procedural visuals and sound, and platform features such as ads and rewarded videos. The graph reflects documented capabilities and indexed imports; unsampled implementation details are not inferred.
Main entry points: game.ts Game runtime · main.ts Startup · helper.ts Farm helpers · models.ts Procedural models
Components 24
Runtime and platform
- Startup
src/main.ts - Platform SDK
src/sdk.ts - Save state
src/state.ts
Farm simulation
- Game runtime
src/game/game.ts - Farm content
src/data.ts - Controls
src/input.ts - Fields and gardens
src/game/field.ts - Animal and craft stations
src/game/station.ts - Market stalls
src/game/shelf.ts - Farm helpers
src/game/helper.ts - Customers and orders
src/game/customers.ts - Game effects
src/game/effects.ts
World and content
- Farm world
src/render/world.ts - Scene and camera
src/render/stage.ts - Procedural models
src/render/models.ts - Geometry builder
src/render/mb.ts - Character portraits
src/render/portraits.ts
Player interface
- HUD and dialogs
src/ui/ui.ts - Localization
src/i18n.ts - World labels
src/game/labels.ts - Procedural audio
src/audio.ts
Other components
- Player
- Yandex Games
- Browser storage
Connections 35
- Player → Startup: starts game
README.md - Startup → Platform SDK: initializes
README.md - Startup → Localization: sets language
README.md - Startup → Save state: loads save
README.md - Startup → Game runtime: starts runtime
README.md - Save state → Browser storage: backs up
README.md - Save state → Yandex Games: saves and loads
README.md - Game runtime → Platform SDK: controls gameplay
src/game/game.ts - Game runtime → Procedural audio: mutes and plays
src/game/game.ts - Game runtime → Farm content: reads definitions
src/game/game.ts - Game runtime → Fields and gardens: updates farm
src/game/game.ts - Game runtime → Animal and craft stations: updates production
src/game/game.ts - Game runtime → Market stalls: updates selling
src/game/game.ts - Game runtime → Farm helpers: updates helpers
src/game/game.ts - Game runtime → Customers and orders: runs market
src/game/game.ts - Game runtime → Controls: reads controls
src/game/game.ts - Game runtime → Farm world: builds scene
src/game/game.ts - Game runtime → Scene and camera: uses renderer
src/game/game.ts - Game runtime → Procedural models: builds characters
src/game/game.ts - Game runtime → Character portraits: renders portraits
src/game/game.ts - Game runtime → HUD and dialogs: updates interface
src/game/game.ts - Farm world → Procedural models: uses model builders
src/render/world.ts - Procedural models → Geometry builder: builds geometry
src/render/models.ts - Game runtime → Game effects: triggers effects
src/game/game.ts - Game effects → Procedural models: uses item geometry
src/game/effects.ts - Game effects → World labels: shows float text
src/game/effects.ts - HUD and dialogs → Localization: translates text
README.md - Player → Controls: provides controls
README.md - Player → Fields and gardens: harvests crops
README.md - Player → Animal and craft stations: feeds and collects
README.md - Player → Market stalls: stocks and sells
README.md - Customers and orders → Market stalls: buy products
src/game/customers.ts - Farm helpers → Fields and gardens: collects inputs
src/game/helper.ts - Farm helpers → Animal and craft stations: delivers goods
src/game/helper.ts - Farm helpers → Market stalls: delivers goods
src/game/helper.ts