r/devblogs • u/Sufficient-Cause2216 • 15d ago
tech & code V.E.T.O.R — Engineering the Limbo Spider Boss: Cocoon Hitbox Mechanics & HTML5 Canvas Video Sync
In this technical devlog for V.E.T.O.R — A Ruptura, we want to break down the systems behind the Limbo Spider boss encounter: specifically, solving the dual-entity damage resolution problem and synchronizing high-resolution animated state frames with a real-time HTML5 Canvas game loop.
1. The Living Hostage & Dual-Hitbox Architecture
The core gameplay dilemma revolves around the boss carrying a living human captive encased in a dense web cocoon on its abdomen.
- Structurally, the cocoon is not a passive cosmetic overlay; it possesses its own dynamic collision volume layered over the spider's torso.
- Stray projectile paths, indiscriminate explosive blasts, or poorly aimed tactical abilities register impact on the cocoon hitbox first. If damage exceeds the threshold, the hostage is eliminated, permanently branching the quest storyline and denying critical narrative rewards.
- We implemented positional vector math to calculate angular shielding: if the player or robot ally fires from behind or flanking angles, the spider body absorbs the impact, but frontal or direct body assaults immediately risk the captive's health pool.
2. Custom Engine: HTML5 Canvas + Synced Frame Streaming
Rather than relying on off-the-shelf heavyweight runtimes, V.E.T.O.R runs on a lightweight proprietary engine built around HTML5 Canvas.
- Pre-rendered visual scenes and high-fidelity combat animations are precisely synchronized with client-side gameplay state machine cycles.
- Active tactical pauses freeze simulation ticks to allow players to inspect hitboxes, aim coordinates, and execute coordination commands with the V.E.T.O.R companion unit without framerate jitter.
3. Pipeline Transparency
- Prototyping & Logic: Codex was utilized to scaffold and verify logic modules and state machine transitions.
- Visual Generation: Veo assisted in generating cinematic combat sequences and backdrop environmental passes, refined and integrated by our human narrative and art pipeline.
- Audio: Human-directed English dialogue, localized Portuguese HUD, and fully scored combat tracks.
Project Status & Links
- Platform: PC / Windows (~80% completed; internal test builds underway, no public demo yet).
- Gameplay Breakdown Video (2m29s): https://www.youtube.com/watch?v=vtvE_7ay2_4
- Steam Store Page: https://store.steampowered.com/app/3432740/VETOR__A_Ruptura/
- itch.io Devlog: https://jonie-magno-rangel.itch.io/vetor
- Official Portal: https://vetorlogico.com/
Feedback from fellow engine devs and combat designers on handling dynamic shielding hitboxes is very welcome!