<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Jonie Rangel</title>
    <description>The latest articles on DEV Community by Jonie Rangel (@jonie_rangel_051969a0f3fe).</description>
    <link>https://dev.to/jonie_rangel_051969a0f3fe</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4244529%2Fdba26405-1f8e-4864-8bde-e4d7c2da3354.png</url>
      <title>DEV Community: Jonie Rangel</title>
      <link>https://dev.to/jonie_rangel_051969a0f3fe</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/jonie_rangel_051969a0f3fe"/>
    <language>en</language>
    <item>
      <title>Handling Live Boss Interrupts, Stamina Guards, and Grounded AI Negotiation in HTML5 Canvas (V.E.T.O.R — A Ruptura)</title>
      <dc:creator>Jonie Rangel</dc:creator>
      <pubDate>Sun, 15 Nov 2026 04:07:15 +0000</pubDate>
      <link>https://dev.to/jonie_rangel_051969a0f3fe/handling-live-boss-interrupts-stamina-guards-and-grounded-ai-negotiation-in-html5-canvas-17ih</link>
      <guid>https://dev.to/jonie_rangel_051969a0f3fe/handling-live-boss-interrupts-stamina-guards-and-grounded-ai-negotiation-in-html5-canvas-17ih</guid>
      <description>&lt;p&gt;When you let players speak freely to an enemy boss during an active fight, the UI, animation state, audio playback, and combat hitboxes all collide at once.&lt;/p&gt;

&lt;p&gt;Here is a 4m44s unscripted test run from &lt;strong&gt;V.E.T.O.R — A Ruptura&lt;/strong&gt; against &lt;strong&gt;Voldrak the Troll&lt;/strong&gt;, showing both the mechanical combat path and real-time negotiation:&lt;/p&gt;

&lt;p&gt;  &lt;iframe src="https://www.youtube.com/embed/HJMoPBQ2Wx4" width="710" height="399"&gt;
  &lt;/iframe&gt;
&lt;/p&gt;

&lt;h3&gt;
  
  
  Key Engineering Challenges in This Encounter
&lt;/h3&gt;

&lt;h4&gt;
  
  
  1. Interrupting Boss Speech With Real Damage
&lt;/h4&gt;

&lt;p&gt;If Voldrak is mid-sentence when the player lands a strike, the engine cannot just cut audio abruptly or freeze frame positions:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The active Web Audio &lt;code&gt;AudioContext&lt;/code&gt; suspends and the silent talking video clip pauses while a synchronized hit-reaction clip plays.&lt;/li&gt;
&lt;li&gt;Once damage recovery clears, both audio and talking animation resume seamlessly without regenerating the line.&lt;/li&gt;
&lt;li&gt;Fatal blows cleanly abort queued speech and transition into the defeat clip.&lt;/li&gt;
&lt;/ul&gt;

&lt;h4&gt;
  
  
  2. Dynamic Tolerance &amp;amp; Escalation
&lt;/h4&gt;

&lt;p&gt;Voldrak tracks a live &lt;strong&gt;tolerance/temperament gauge&lt;/strong&gt; alongside his 1200 HP and guard stance:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Passing thresholds (&lt;code&gt;NERVOUS&lt;/code&gt; / &lt;code&gt;FURY&lt;/code&gt;) alters his combat aggression, attack/defense modifiers, and visual status indicators.&lt;/li&gt;
&lt;li&gt;Conversely, negotiating through the player chat or asking AI companion &lt;strong&gt;V.E.T.O.R.&lt;/strong&gt; to speak opens an exchange table where confirmed item offerings change the encounter outcome peacefully.&lt;/li&gt;
&lt;/ul&gt;

&lt;h4&gt;
  
  
  3. Grounding LLM Responses in Real State
&lt;/h4&gt;

&lt;p&gt;To prevent an AI-voiced boss from hallucinating inventory transfers or premature peace deals:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Every dialogue request receives a structured snapshot of combat state, stamina, active guard, and real inventory counts.&lt;/li&gt;
&lt;li&gt;Post-generation validation strips disallowed claims (such as pretending an item was received or the path is already open before a confirmed table handoff) and falls back cleanly if a line repeats.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Status:&lt;/strong&gt; Actively in development for &lt;strong&gt;PC / Windows&lt;/strong&gt; (no public playable demo yet).&lt;/p&gt;

&lt;p&gt;Official page &amp;amp; devlogs: &lt;a href="https://vetorlogico.com/#conheca-o-jogo" rel="noopener noreferrer"&gt;https://vetorlogico.com/#conheca-o-jogo&lt;/a&gt;&lt;/p&gt;

</description>
      <category>gamedev</category>
      <category>javascript</category>
      <category>html</category>
      <category>indiedev</category>
    </item>
    <item>
      <title>Building a Custom HTML5 Canvas + Synced Video Engine for Real-Time Combat Dialogue (V.E.T.O.R — A Ruptura)</title>
      <dc:creator>Jonie Rangel</dc:creator>
      <pubDate>Sat, 14 Nov 2026 17:47:40 +0000</pubDate>
      <link>https://dev.to/jonie_rangel_051969a0f3fe/building-a-custom-html5-canvas-synced-video-engine-for-real-time-combat-dialogue-vetor-a-2987</link>
      <guid>https://dev.to/jonie_rangel_051969a0f3fe/building-a-custom-html5-canvas-synced-video-engine-for-real-time-combat-dialogue-vetor-a-2987</guid>
      <description>&lt;p&gt;I am building &lt;strong&gt;V.E.T.O.R — A Ruptura&lt;/strong&gt;, an independent Brazilian action-adventure PC/Windows game running on a &lt;strong&gt;custom client engine built with HTML5 Canvas + synchronized MP4 video scenes&lt;/strong&gt; instead of Unity, Unreal, or Godot.&lt;/p&gt;

&lt;p&gt;Here is a breakdown of the technical architecture and two recent gameplay milestones showing real-time companion dialogue and multi-language voice switching in combat.&lt;/p&gt;

&lt;h3&gt;
  
  
  1. Custom 2D Canvas + Synced MP4 Scene Deck (&lt;code&gt;1280×720&lt;/code&gt;)
&lt;/h3&gt;

&lt;p&gt;Rather than rendering complex lighting and hand-animated cutscenes through heavy 2D shader pipelines, the client layers an &lt;strong&gt;HTML5 Canvas loop&lt;/strong&gt; on top of a &lt;strong&gt;synchronized deck of &lt;code&gt;1280×720&lt;/code&gt; MP4 clips&lt;/strong&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Proximity-based preloading&lt;/strong&gt;: scenes and transitions preload ahead of player movement to minimize hitching when crossing boundaries.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Frame-aligned visual overlays&lt;/strong&gt;: foreground props (vegetation, cover obstacles, seam patches) mask and composite dynamically over the active video frame.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Client-side combat physics&lt;/strong&gt;: movement, knockback/recoil, hit windows, guard timing, HUD bars, and target focus run synchronously in Canvas over the video layer.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  2. Real-Time Combat Dialogue &amp;amp; Companion Assistance
&lt;/h3&gt;

&lt;p&gt;Instead of static branching menus, NPCs, allies, and bosses respond dynamically to player input during encounters. A tolerance and context controller translates tone and dialogue into combat consequences (triggering escalation, opening tactical windows, or prompting weak-point scans from your floating robot companion &lt;strong&gt;VETOR&lt;/strong&gt;).&lt;/p&gt;

&lt;p&gt;In this recent encounter against &lt;strong&gt;Tharok&lt;/strong&gt;, ally &lt;strong&gt;Albert&lt;/strong&gt; and &lt;strong&gt;VETOR&lt;/strong&gt; interact mid-fight:&lt;/p&gt;

&lt;p&gt;  &lt;iframe src="https://www.youtube.com/embed/CJakcjQfwrY" width="710" height="399"&gt;
  &lt;/iframe&gt;
&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Live 7-Language Dubbing Pipeline
&lt;/h3&gt;

&lt;p&gt;The game already supports voice acting and UI across &lt;strong&gt;7 languages&lt;/strong&gt; (&lt;strong&gt;Brazilian Portuguese, English, Spanish, French, German, Italian, and Dutch&lt;/strong&gt;), switching languages coherently inside the same battle sequence:&lt;/p&gt;

&lt;p&gt;  &lt;iframe src="https://www.youtube.com/embed/BP2v6d2mz44" width="710" height="399"&gt;
  &lt;/iframe&gt;
&lt;/p&gt;

&lt;h3&gt;
  
  
  Current Project Status &amp;amp; Questions
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;V.E.T.O.R — A Ruptura&lt;/strong&gt; is in active development for PC/Windows (&lt;strong&gt;no public demo yet&lt;/strong&gt;).&lt;/li&gt;
&lt;li&gt;Project overview and additional clips: &lt;a href="https://vetorlogico.com" rel="noopener noreferrer"&gt;https://vetorlogico.com&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;For anyone who has worked with Canvas + real-time media or dynamic NPC dialogue:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;How do you balance combat pacing with readable real-time companion/boss dialogue without overwhelming player attention?&lt;/li&gt;
&lt;li&gt;What memory or synchronization edge cases would you monitor most closely when combining Canvas gameplay loops with synced video streams?&lt;/li&gt;
&lt;/ol&gt;

</description>
      <category>gamedev</category>
      <category>indiedev</category>
      <category>javascript</category>
      <category>webdev</category>
    </item>
  </channel>
</rss>
