How rafanhrayan/bss-webgl works
Bee Swarm Simulator WebGL Edition is a browser-based JavaScript remake of the game. The broad user path is opening the web page and playing the simulation; the supplied evidence does not expose the main runtime loop, so detailed hand-offs between rendering, gameplay, and interface code cannot be confirmed. The graph preserves the major visible domains: NPC quests and rewards, equipment, world geometry, shader and texture assets, math support, and audio. Some audio behavior is documented in the README, but its implementation is not shown.
Main entry points: index.js Player · index.html Game page · dialogue.js NPC dialogue · mapMesh.js World geometry
Components 12
World rendering
- World geometry
mapMesh.js - WebGL shaders
GLSLShaders.js - Math utilities
MathHelper.js - Matrix utilities
resources/gl-matrix-min.js
Gameplay systems
- NPC dialogue
dialogue.js - Player equipment
playerGear.js
Media assets
- Texture generation
textures.js - Thumbnail drawing
thumbnail.js - Game audio
audio
Other components
- Player
Connections 7
- Player → Game page: opens
README.md - NPC dialogue → Player: updates quests
dialogue.js - Game page → Player: runs game
- Player → World geometry: renders world
- Player → WebGL shaders: uses shaders
- Player → Texture generation: uses textures
- Player → Game audio: plays audio