| English | 日本語 |

webg’s basic features together, including scene management, collision handling, HUD, and audioShape objects”, “updating nodes”, and “reflecting input”drawHud(), narrowing the on-screen information to what is needed for game progressionGameStateManager: manages the top-level phases intro / play / pause / stage-clear / resultSpace / Node: manages the game objectsShape: generates the floor, walls, blocks, paddle, and packsSmoothShader: shared standard material for drawing blocks both with and without normal mapsParticleEmitter: manages spark effects when blocks are destroyedTexture: generates procedural textures for blocksMessage: gameplay-specific HUD drawn from drawHud()Touch: fixed buttons ← / → / A / D / RGameAudioSynth: plays BGM and sound effects from melody presets and the SE catalogmain.js initializes WebgApp, SmoothShader, and GameAudioSynth, creates the arena, blocks, paddle, pack, and particles, and then connects input, the game runtime, scene phases, and diagnostics. Per-frame game rules are kept out of main.js so its initialization and module wiring remain visible.
gameRuntime.js stores play-time state such as score, level, the remaining PACK count, and paddle and puck position and velocity. It updates paddle movement, puck reflection, block collision, and short recoil effects, while delegating stage decisions to stageFlow.js. stageFlow.js handles the time limit, target break count, score calculation, block reset, and game over, separating object movement from stage rules.
scenePhases.js uses GameStateManager to switch the top-level intro / play / pause / stage-clear / result states. It converts stage results into scene phases and chooses phase-specific BGM and notification sound effects. HUD drawing is in Hud.js, sparks are in particleEffects.js, and persistent high scores are in highScoreStore.js, so rendering, short effects, and saved data can be inspected independently of gameplay updates.
The frame flow converts input to actions, updates the scene phase, advances the game runtime according to that phase, draws the updated nodes, and then overlays particles and the HUD. Pause keeps the current frame while stopping gameplay updates. Result stops movement and collision while continuing the ending display and particle updates.
main.js: connects WebgApp initialization, scene construction, input, the update/render loop, and diagnosticsconstants.js: shared arena dimensions, block counts, speeds, stage timing, and 2D math helpersarenaScene.js: creates the arena floor, walls, guide ring, and lightingshapeFactory.js: creates shared shapes such as beveled boxes and cylindersblockField.js: manages block textures, prototypes, instances, types, and stage resetsgameRuntime.js: updates paddle and puck movement, collisions, score, and play-time statestageFlow.js: evaluates the time limit, mission target, stage clear, score, and game overscenePhases.js: manages top-level phases and phase-specific audio through GameStateManagerparticleEffects.js: creates and draws sparks when blocks are destroyedHud.js: formats gameplay and diagnostic state for the canvas HUDinputConfig.js: defines keyboard, touch, and debug action mappingshighScoreStore.js: saves the top five scores through WebgApp.saveProgress() and loadProgress()paddleNode, the remaining PACK count decreases by 1 exactly once and remains unchanged while the pack stays in the areaPACK reaches 0, the game ends on that frame and the ending HUD shows the top five high scoresSmoothShader path without normals or texture) produces an effect that increases the remaining PACK count by 1current count / target count) update immediately when blocks are destroyed, verifying that the gameplay HUD linked through drawHud() is correctArrowLeft / ArrowRight: move the paddle along its long axisA / D: rotate the paddleR: reset the pack position during play, or restart the game after game overK: toggle pause on or offO: force game overP: save a screenshotQ / W: show diagnostics as text / JSON in the probe displayC / V: copy diagnostics as text / JSON to the clipboardJ / L: print diagnostics as text / JSON to the consoleF / G: save diagnostics as text / JSONM: switch between debug and release displayEnter / Space / click: start trigger while waiting to begin the stagecoarse pointer), touch buttons ← / → / A / D / R are shown at the bottom of the screen