<?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: Kamal Mosadegh</title>
    <description>The latest articles on DEV Community by Kamal Mosadegh (@kamalmosadegh).</description>
    <link>https://dev.to/kamalmosadegh</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%2F4254469%2Fe9b0e4f5-49da-4892-bed4-d50d25bfef61.png</url>
      <title>DEV Community: Kamal Mosadegh</title>
      <link>https://dev.to/kamalmosadegh</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/kamalmosadegh"/>
    <language>en</language>
    <item>
      <title>I Built a Complete Arena Shooter in Vanilla JavaScript — No Engine, No Libraries, No Audio Files</title>
      <dc:creator>Kamal Mosadegh</dc:creator>
      <pubDate>Thu, 19 Nov 2026 20:38:45 +0000</pubDate>
      <link>https://dev.to/kamalmosadegh/i-built-a-complete-arena-shooter-in-vanilla-javascript-no-engine-no-libraries-no-audio-files-46m0</link>
      <guid>https://dev.to/kamalmosadegh/i-built-a-complete-arena-shooter-in-vanilla-javascript-no-engine-no-libraries-no-audio-files-46m0</guid>
      <description>&lt;p&gt;Every sound in VOIDSTORM — the music, the laser shots, the boss roar — is synthesized live with the Web Audio API. There is not a single audio file in the repository. The whole game is vanilla JavaScript and Canvas 2D: no engine, no framework, no build step. You open &lt;code&gt;index.html&lt;/code&gt; and it runs.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;▶ Play it in your browser:&lt;/strong&gt; &lt;a href="https://kamalmosadegh.github.io/voidstorm/game/" rel="noopener noreferrer"&gt;https://kamalmosadegh.github.io/voidstorm/game/&lt;/a&gt;&lt;br&gt;
&lt;strong&gt;Source:&lt;/strong&gt; &lt;a href="https://github.com/kamalmosadegh/voidstorm" rel="noopener noreferrer"&gt;https://github.com/kamalmosadegh/voidstorm&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What the game is
&lt;/h2&gt;

&lt;p&gt;VOIDSTORM is a neon arena survival shooter. You pilot a lone ship against escalating waves: five enemy types with distinct behaviours, a multi-phase boss on wave 10, and an endless mode after victory. Between waves you draft upgrades — damage, fire rate, shields, drones — so every run builds differently.&lt;/p&gt;

&lt;h2&gt;
  
  
  Three decisions that made it work
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;1. A fixed-timestep loop with a seeded RNG.&lt;/strong&gt;&lt;br&gt;
The simulation advances in fixed steps and renders interpolate between them, so gameplay speed is identical on a 60 Hz laptop and a 144 Hz monitor. All randomness comes from a seeded generator, which means a run is reproducible — when a tester says "wave 7 is unfair", I can replay the exact run they played.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Synthesized audio instead of files.&lt;/strong&gt;&lt;br&gt;
A tiny WebAudio synth stack generates everything: oscillators and noise buffers for shots and explosions, a procedural bassline and arpeggio for the soundtrack. The trade-off is real (you design sounds with envelopes, not samples), but the payoff is a game folder measured in kilobytes and zero asset licensing questions.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. Object pooling everywhere.&lt;/strong&gt;&lt;br&gt;
Bullets, particles and enemies are pooled and reused. On a busy wave the game holds hundreds of live entities; without pooling, garbage-collection pauses show up exactly when the action peaks. With pooling, the frame budget stays boring — which is what you want.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I would do differently
&lt;/h2&gt;

&lt;p&gt;The upgrade draft started as a pure numbers game ("+10% damage") and tested flat. It only became fun when upgrades changed &lt;em&gt;behaviour&lt;/em&gt; — split shots, piercing rounds, an orbiting drone. Numbers scale a run; mechanics diversify it.&lt;/p&gt;

&lt;h2&gt;
  
  
  The rest of the work
&lt;/h2&gt;

&lt;p&gt;VOIDSTORM is one of six projects I shipped in November 2026 — alongside an algorithmic Bitcoin trading bot, a token-valuation model ranking 204 protocols, and a second open-world browser game, Solmar Bay. Everything is on my portfolio: &lt;a href="https://kamalmosadegh.github.io" rel="noopener noreferrer"&gt;https://kamalmosadegh.github.io&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If you build games with zero dependencies, I would love to hear how you handle audio. Questions and feedback welcome — here, or by email via my portfolio.&lt;/p&gt;

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