<?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: maciahtohmas</title>
    <description>The latest articles on DEV Community by maciahtohmas (@maciahtohmas).</description>
    <link>https://dev.to/maciahtohmas</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%2F4218328%2Fc9221c8e-d9ea-4b50-b60f-1aef634af15a.png</url>
      <title>DEV Community: maciahtohmas</title>
      <link>https://dev.to/maciahtohmas</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/maciahtohmas"/>
    <language>en</language>
    <item>
      <title>What I learned shipping my first game</title>
      <dc:creator>maciahtohmas</dc:creator>
      <pubDate>Sun, 15 Nov 2026 18:50:26 +0000</pubDate>
      <link>https://dev.to/maciahtohmas/what-i-learned-shipping-my-first-game-338h</link>
      <guid>https://dev.to/maciahtohmas/what-i-learned-shipping-my-first-game-338h</guid>
      <description>&lt;p&gt;After the military I wanted to make a living doing something I actually care about. I love tech and I like working with AI agents, and building a game is where those meet. Samurai Vengeance is the first game I have ever made. It is a samurai action platformer that runs in the browser, on a phone or a computer, built as a one-person studio, Billfiti Studios, in Southern California.&lt;/p&gt;

&lt;p&gt;The proudest moment so far was the day it went live and anyone could play it from a link. Most of what I learned came after that day. Here are the lessons that were specific enough to change how I work.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Your test devices are a blind spot
&lt;/h2&gt;

&lt;p&gt;The game shipped running at double speed on 120Hz phones and 2.4x on 144Hz monitors. Every constant in my update function, gravity, jump velocity, every cooldown, was a per-frame value, and the update ran once per screen refresh. I develop on one phone and one laptop, both 60Hz, so I never saw it.&lt;/p&gt;

&lt;p&gt;The fix was a fixed timestep: the simulation always steps at 60 per second, no matter how fast the screen draws. No tuned value had to change.&lt;/p&gt;

&lt;p&gt;The lesson is cheap to act on. Before shipping, run the game on at least one high refresh rate screen.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Read a vague rejection against the written requirements
&lt;/h2&gt;

&lt;p&gt;I found that bug because a game portal rejected the game with one line saying the overall quality did not meet their expectations. My first instinct was that the art was not good enough, and I was ready to redo it.&lt;/p&gt;

&lt;p&gt;Instead I went through their published technical requirements line by line. One said mechanics had to perform identically on 60Hz, 144Hz and 165Hz monitors. That was the actual problem. A reviewer on a gaming monitor had opened a game running far too fast.&lt;/p&gt;

&lt;p&gt;When feedback is vague, do not assume it means the thing you are already insecure about. Look for the concrete rule you broke.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Thin sites get judged as thin
&lt;/h2&gt;

&lt;p&gt;When I applied for AdSense, the site was turned down for low value content. A game canvas does not give a reviewer much text to evaluate, and a few short pages around it were not enough.&lt;/p&gt;

&lt;p&gt;So I built pages with real depth, written from the game code: a Boss Guide covering all ten bosses, their health and their Phase II changes, an Enemy Guide with health tables and spawn rates, and more dev notes about bugs I fixed. They are useful to players on their own, and they show anyone reviewing the site what it is. Ads in the game stay switched off until access is granted.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Send first-time players straight into the game
&lt;/h2&gt;

&lt;p&gt;My early flow had a splash screen, then a menu full of choices, then gameplay with timed tips that popped up and disappeared whether or not you had done anything.&lt;/p&gt;

&lt;p&gt;Now first-time players go straight into stage 1 on the normal difficulty with an interactive tutorial. Each step waits for you to actually do the thing: move, jump, double jump, defeat an enemy, parry, dash. The parry step fires slow, harmless practice arrows and tells you if you were too early or too late, instead of hoping an enemy wanders close. The wording matches your controls, keyboard or touch, the relevant touch button glows, and a Skip button is always visible.&lt;/p&gt;

&lt;p&gt;I also hid the shop offers (Premium, Season Pass, Starter Bundle, referrals) until a player reaches stage 4. Someone on their first minute should be learning to play, not reading prices.&lt;/p&gt;

&lt;h2&gt;
  
  
  5. A single error can freeze everything
&lt;/h2&gt;

&lt;p&gt;A hand-written &lt;code&gt;requestAnimationFrame&lt;/code&gt; loop only continues because each frame requests the next one on its last line. If anything above that throws, the game stops for good, with no message on screen.&lt;/p&gt;

&lt;p&gt;I had two of these. The first boss health bar used the boss's remaining health as a gradient stop, and the Ki special could push health below zero. A negative gradient offset throws, so the game could freeze right as you beat the first boss. The second was a sword skin in a paid bundle that was missing from the renderer's colour table, which would have frozen the game for every single person who bought it. Nobody had bought it yet when I found it.&lt;/p&gt;

&lt;p&gt;Now draw and update each sit in their own &lt;code&gt;try&lt;/code&gt; block inside the loop. A bad frame is one bad frame, and the error still goes to the console.&lt;/p&gt;

&lt;h2&gt;
  
  
  6. Believe players before you can reproduce it
&lt;/h2&gt;

&lt;p&gt;Two of the bugs I wrote up were found by players, not by me. One told me the Ki bar filled just as fast swinging at empty air. The code had a flag recording whether a swing connected, and the reward lines right under it never checked it. Another reported swings that visibly went through enemies and did nothing, worst in mid-air. The hit box and the drawn slash came from two different sets of numbers that had drifted apart.&lt;/p&gt;

&lt;p&gt;A player on the r/gamedev Discord also reported that A and D did not move the character, even though the tutorial and How to Play told them to. The movement code only read the arrow keys.&lt;/p&gt;

&lt;p&gt;Each of these was obvious once someone said it. I knew how the game was supposed to play, so my eyes filled in the rest.&lt;/p&gt;

&lt;h2&gt;
  
  
  7. Make one thing come from the other
&lt;/h2&gt;

&lt;p&gt;The hit box bug, the Ki bug and the missing skin colours were all the same shape: two pieces of code that were supposed to agree, with nothing checking that they did. Now when I add something that has to match something else, I try to derive one from the other. The hit box is now calculated from the same arc that draws the slash. If the picture changes, the hit area changes with it.&lt;/p&gt;

&lt;h2&gt;
  
  
  8. Measure whether anyone actually plays
&lt;/h2&gt;

&lt;p&gt;My analytics only ran after a visitor accepted the consent banner, and few people do. My host counted page requests, and since the whole game is one page, a three-second visit and a long session looked the same.&lt;/p&gt;

&lt;p&gt;So I added a small counter that records plain totals, with no cookies and no identifiers: arrived, started, cleared a stage, died, quit, and each tutorial step. That is how I can see where people stop, which matters more to me than how many arrive.&lt;/p&gt;

&lt;p&gt;It has already paid for itself. The counter showed new players starting the tutorial and nobody finishing it. Stage 1 only has two enemies, and if you beat both early, the stage ended at step three, so the parry and dash lessons never appeared. No amount of playing it myself would have shown me that, because I always did the steps in order. The fix keeps the stage open until the last lesson.&lt;/p&gt;

&lt;h2&gt;
  
  
  What is next
&lt;/h2&gt;

&lt;p&gt;More stages and content for the game, an illustrated comic set in its world, and more work under the Billfiti Studios name. I write up the worst bugs in the dev notes on the site as I find them.&lt;/p&gt;

&lt;p&gt;Samurai Vengeance is free to play at &lt;a href="https://samuraivengeance.com" rel="noopener noreferrer"&gt;https://samuraivengeance.com&lt;/a&gt;&lt;/p&gt;

</description>
      <category>gamedev</category>
      <category>indiedev</category>
      <category>beginners</category>
      <category>javascript</category>
    </item>
    <item>
      <title>I built a whole action game in one HTML file</title>
      <dc:creator>maciahtohmas</dc:creator>
      <pubDate>Thu, 12 Nov 2026 22:58:30 +0000</pubDate>
      <link>https://dev.to/maciahtohmas/i-built-a-whole-action-game-in-one-html-file-3dbh</link>
      <guid>https://dev.to/maciahtohmas/i-built-a-whole-action-game-in-one-html-file-3dbh</guid>
      <description>&lt;p&gt;Samurai Vengeance is a side-on samurai action platformer with 1000 stages, ten bosses, a three-hit combo, a parry and a dash. The game itself lives in one file: &lt;code&gt;index.html&lt;/code&gt;. It is about 650 KB and roughly 8,800 lines of plain JavaScript, CSS and markup, drawn on HTML canvas with no game engine and no build step.&lt;/p&gt;

&lt;p&gt;That is mostly true, and the "mostly" is part of this post. Here is how the pieces fit, and where the single-file idea stops.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why one file
&lt;/h2&gt;

&lt;p&gt;It was my first game, and one file meant there was nothing to configure. No bundler, no module graph, no asset pipeline. Open the file, change a line, reload. Deploying is uploading a static page to Netlify.&lt;/p&gt;

&lt;p&gt;It also suits the platform. The whole point of the game is that anyone can play it from a link, on a phone or a computer, without installing anything. A single page that starts as soon as it loads fits that.&lt;/p&gt;

&lt;h2&gt;
  
  
  Three canvases, not one
&lt;/h2&gt;

&lt;p&gt;The page has three stacked full-screen canvases: &lt;code&gt;bg&lt;/code&gt; for the parallax background, &lt;code&gt;c&lt;/code&gt; for the action, and &lt;code&gt;fg&lt;/code&gt; for weather and foreground. Splitting them lets each layer run at a different cost.&lt;/p&gt;

&lt;p&gt;On high-density phone screens I scale the canvases by the device pixel ratio, but cap it at 2. All three are full screen and redrawn every frame, so fill cost grows with the square of the ratio. Going to 3x would be more than twice the pixels of 2x for a difference that is hard to see on a phone at arm's length.&lt;/p&gt;

&lt;h2&gt;
  
  
  Art: procedural first, atlases on top
&lt;/h2&gt;

&lt;p&gt;This is where "one file" bends. The painted art is not inlined. It ships as separate PNG atlases next to the page: one each for the player, the ninja enemies, the archer and the scenery, plus one per boss. That is fourteen image files.&lt;/p&gt;

&lt;p&gt;Each atlas is a sheet of body parts, not animation frames. A table in the code gives every piece its position in the sheet and a pivot point at the joint:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="no"&gt;PARTS&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;torso&lt;/span&gt;   &lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;  &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;  &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="mi"&gt;186&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="mi"&gt;377&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="mi"&gt;50&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="mi"&gt;07&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;head&lt;/span&gt;    &lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;311&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;  &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="mi"&gt;175&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="mi"&gt;201&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="mi"&gt;46&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="mi"&gt;90&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;katana&lt;/span&gt;  &lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;  &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="mi"&gt;520&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="mi"&gt;498&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;34&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="mi"&gt;055&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="mi"&gt;55&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
  &lt;span class="c1"&gt;// ...&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The numbers are atlas x, atlas y, width, height, then pivot x and y as fractions of the piece. The pivot is the shoulder on an arm, the neck on a head, the grip on the katana. The game already had a procedural skeleton that animates the characters, so the painted pieces are drawn onto that skeleton and rotate around their joints. Walk cycles, attacks and recoils all come from code that existed before the art did.&lt;/p&gt;

&lt;p&gt;Every character also has a fully procedural drawing path in the file. The atlas loader tries a list of paths and, if none load, it logs one line and leaves that character procedural:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;_loadAtlas&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;list&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="n"&gt;onReady&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="n"&gt;label&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="kd"&gt;let&lt;/span&gt; &lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;next&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;=&amp;gt;&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;=&lt;/span&gt;&lt;span class="n"&gt;list&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;length&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="nb"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'[parts] no '&lt;/span&gt;&lt;span class="o"&gt;+&lt;/span&gt;&lt;span class="n"&gt;label&lt;/span&gt;&lt;span class="o"&gt;+&lt;/span&gt;&lt;span class="s1"&gt;' atlas found, using procedural drawing'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
      &lt;span class="k"&gt;return&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
    &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;src&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;list&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="o"&gt;++&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="n"&gt;im&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;Image&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="n"&gt;im&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;onload&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;=&amp;gt;&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="nf"&gt;onReady&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;im&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;&lt;span class="nb"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'[parts] '&lt;/span&gt;&lt;span class="o"&gt;+&lt;/span&gt;&lt;span class="n"&gt;label&lt;/span&gt;&lt;span class="o"&gt;+&lt;/span&gt;&lt;span class="s1"&gt;' atlas loaded from '&lt;/span&gt;&lt;span class="o"&gt;+&lt;/span&gt;&lt;span class="n"&gt;src&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="n"&gt;im&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;onerror&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;next&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="n"&gt;im&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;src&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;src&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nf"&gt;next&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Because each atlas loads on its own, a painted player could fight procedural enemies while art arrived one character at a time. A missing file is a normal state, not a crash.&lt;/p&gt;

&lt;p&gt;That fallback list cost me something. Each atlas originally tried a &lt;code&gt;sprites/&lt;/code&gt; folder before the site root, but the files lived at the root, so every atlas waited on a 404 first on every visit. Three sprite sheets that were never made were also being requested on every visit. The fix was to try the root first and put the unused sheets behind a &lt;code&gt;SHEETS_ENABLED = false&lt;/code&gt; flag.&lt;/p&gt;

&lt;h2&gt;
  
  
  Audio: a soundtrack with no audio files
&lt;/h2&gt;

&lt;p&gt;There are no music files. The soundtrack is generated live with the Web Audio API. Every track is written in the miyako-bushi scale (D, E flat, G, A, B flat), a five-note scale used in a lot of koto and shamisen music:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="no"&gt;ROOT&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mf"&gt;146.83&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;                 &lt;span class="c1"&gt;// D3&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="no"&gt;SCALE&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="mi"&gt;5&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="mi"&gt;7&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="mi"&gt;8&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;           &lt;span class="c1"&gt;// miyako-bushi&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Each instrument is a small function built from oscillators, filters and noise. A koto pluck, a shamisen, a breathy shakuhachi with delayed vibrato, a taiko that is a sine wave dropping in pitch plus a burst of filtered noise, and a low pad. A melody function walks up and down the scale instead of jumping randomly.&lt;/p&gt;

&lt;p&gt;Timing uses a lookahead scheduler. A &lt;code&gt;setInterval&lt;/code&gt; runs every 25 ms and queues notes about 150 ms ahead on the audio clock. Notes are scheduled against &lt;code&gt;AudioContext.currentTime&lt;/code&gt;, not against the game loop, so the music stays in time even when a frame hitches. There are menu, stage and boss themes, and the boss theme speeds up and adds drums when a boss enters Phase II.&lt;/p&gt;

&lt;p&gt;Sound effects work the same way: short synthesized tones, no samples.&lt;/p&gt;

&lt;h2&gt;
  
  
  Saves: localStorage, with a cloud option
&lt;/h2&gt;

&lt;p&gt;Progress saves without an account. The core save is one JSON object in &lt;code&gt;localStorage&lt;/code&gt; under the key &lt;code&gt;sv5&lt;/code&gt;: highest stage, coins, upgrade levels, difficulty, sword style and premium status. Settings, stats, daily challenges and achievements each get their own key.&lt;/p&gt;

&lt;p&gt;Every read and write is wrapped in &lt;code&gt;try/catch&lt;/code&gt;. Storage can throw in private browsing or when site data is blocked, and a save failure should never stop the game. The loader also falls back to the older &lt;code&gt;sv4&lt;/code&gt; key, so players from an earlier version kept their progress.&lt;/p&gt;

&lt;p&gt;Signing in is optional. When a player does, progress syncs through Firebase Firestore, and the same account puts them on the leaderboard. The Firebase SDK loads from Google's CDN, which is another thing outside the one file.&lt;/p&gt;

&lt;h2&gt;
  
  
  The counter: knowing if anyone played
&lt;/h2&gt;

&lt;p&gt;This was the piece I needed most and expected least. Firebase Analytics only starts after a visitor accepts the consent banner, which is a small share of visitors. Netlify counts HTTP requests, and since the whole game is one page, a three-second bounce and a forty-minute session look the same there. Neither could tell me whether anyone actually played.&lt;/p&gt;

&lt;p&gt;So I wrote a small counter. The page sends plain event names, like &lt;code&gt;arrived&lt;/code&gt;, &lt;code&gt;start&lt;/code&gt;, &lt;code&gt;s_clear&lt;/code&gt; with a stage number, &lt;code&gt;death&lt;/code&gt;, &lt;code&gt;quit&lt;/code&gt;, and each tutorial step. A Netlify function adds them to daily integer totals in Firestore. No cookies, no identifier, no IP, nothing written to the device, and the function only accepts event names on an allowlist so nobody can grow the data with junk.&lt;/p&gt;

&lt;p&gt;On the client, events are batched on a 1.2 second timer and sent with &lt;code&gt;navigator.sendBeacon&lt;/code&gt; as &lt;code&gt;text/plain&lt;/code&gt;, which avoids a CORS preflight. The queue is flushed on &lt;code&gt;pagehide&lt;/code&gt;, because a phone can background the page at any moment. The &lt;code&gt;arrived&lt;/code&gt; event only fires once the page is visible, because some apps preload links in the background and were inflating the count.&lt;/p&gt;

&lt;h2&gt;
  
  
  The tradeoffs
&lt;/h2&gt;

&lt;p&gt;Honestly, here is what one file costs.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Every change ships the whole game.&lt;/strong&gt; Fixing one typo means a new 650 KB page. The server is set to &lt;code&gt;no-cache&lt;/code&gt; so browsers check for a new version on every visit, but an unchanged page now costs a 304 instead of a full download. Hosting bandwidth is metered, so this mattered.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;It is not truly one file.&lt;/strong&gt; The art is fourteen PNGs. Payments and the counter run in Netlify functions. Firebase comes from a CDN. "One file" really means one file of game code.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Navigation is hard.&lt;/strong&gt; At 8,800 lines, finding things means searching, not browsing. Some bugs came from two parts of the file that had to agree and drifted apart, like a hit box defined in one place and the slash drawn from different numbers in another.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Errors are global.&lt;/strong&gt; With one hand-written loop, one thrown error in drawing code used to stop the whole game. The loop now wraps draw and update in separate &lt;code&gt;try&lt;/code&gt; blocks so a bad frame stays one bad frame.&lt;/p&gt;

&lt;p&gt;What it gave me was a game that starts from a link on any device, with nothing to install and no toolchain between me and the code. For a first game, that was the right trade.&lt;/p&gt;

&lt;p&gt;Play it at &lt;a href="https://samuraivengeance.com" rel="noopener noreferrer"&gt;https://samuraivengeance.com&lt;/a&gt;&lt;/p&gt;

</description>
      <category>showdev</category>
      <category>gamedev</category>
      <category>javascript</category>
      <category>webdev</category>
    </item>
    <item>
      <title>My browser game ran 2.4x too fast on 144Hz monitors</title>
      <dc:creator>maciahtohmas</dc:creator>
      <pubDate>Sun, 01 Nov 2026 03:40:38 +0000</pubDate>
      <link>https://dev.to/maciahtohmas/my-browser-game-ran-24x-too-fast-on-144hz-monitors-4fj7</link>
      <guid>https://dev.to/maciahtohmas/my-browser-game-ran-24x-too-fast-on-144hz-monitors-4fj7</guid>
      <description>&lt;p&gt;I make Samurai Vengeance, a free action platformer that runs in the browser. It is plain JavaScript on an HTML canvas, no engine. For weeks it shipped with a bug that made it run at double speed on many current phones and at 2.4x on a 144Hz gaming monitor. I never saw it, because every screen I tested on ran at 60Hz.&lt;/p&gt;

&lt;p&gt;This post covers what the bug was, how I finally found it, and the fix I used, which did not require changing a single tuned value.&lt;/p&gt;

&lt;h2&gt;
  
  
  The loop most browser games start with
&lt;/h2&gt;

&lt;p&gt;My original loop had the usual shape:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;loop&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nf"&gt;draw&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;
  &lt;span class="nf"&gt;update&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;
  &lt;span class="nf"&gt;requestAnimationFrame&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;loop&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;update()&lt;/code&gt; ran once per animation frame. Every number inside it was a per-frame value: gravity &lt;code&gt;0.57&lt;/code&gt;, jump velocity &lt;code&gt;-13.5&lt;/code&gt;, friction &lt;code&gt;0.81&lt;/code&gt;. Every cooldown, every invincibility window and every timer counted down by one per call.&lt;/p&gt;

&lt;p&gt;That is correct at 60Hz. The problem is that &lt;code&gt;requestAnimationFrame&lt;/code&gt; fires at the display's refresh rate, not at 60. Many phones now run at 120Hz, and gaming monitors commonly run at 144Hz or 165Hz. On those screens &lt;code&gt;update()&lt;/code&gt; is called two or more times as often, so gravity is applied two or more times as often, and so is everything else.&lt;/p&gt;

&lt;p&gt;The result is not "a bit snappier". It is a different game:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Jump arcs change, so gaps tuned for one arc can become impossible to clear.&lt;/li&gt;
&lt;li&gt;Enemy attack timing is compressed.&lt;/li&gt;
&lt;li&gt;The parry window, the core skill in the game, is half as long or shorter in real time.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Measuring it
&lt;/h2&gt;

&lt;p&gt;Afterwards I measured how many &lt;code&gt;update()&lt;/code&gt; calls it took for the player to fall 200 pixels. The answer was 25, and it is always 25, because the physics has no concept of time. What that means in seconds depends entirely on the display:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Refresh rate&lt;/th&gt;
&lt;th&gt;Time to fall 200px&lt;/th&gt;
&lt;th&gt;Speed&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;60 Hz&lt;/td&gt;
&lt;td&gt;0.42 s&lt;/td&gt;
&lt;td&gt;1x (correct)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;120 Hz&lt;/td&gt;
&lt;td&gt;0.21 s&lt;/td&gt;
&lt;td&gt;2x&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;144 Hz&lt;/td&gt;
&lt;td&gt;0.17 s&lt;/td&gt;
&lt;td&gt;2.4x&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;165 Hz&lt;/td&gt;
&lt;td&gt;0.15 s&lt;/td&gt;
&lt;td&gt;2.75x&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;You can check your own game the same way. Freeze input, call &lt;code&gt;update()&lt;/code&gt; a fixed number of times, and see how far an object moved. If the distance depends only on the call count and not on elapsed time, your simulation speed is tied to the refresh rate.&lt;/p&gt;

&lt;p&gt;The faster check is to run the game on a 120Hz phone next to a 60Hz device. If it looks faster on the newer one, you have this bug.&lt;/p&gt;

&lt;h2&gt;
  
  
  How I found it
&lt;/h2&gt;

&lt;p&gt;I did not find it myself. A game portal rejected my submission with one sentence:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;The overall quality of the game does not yet meet the expectations of our platform.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;There were no specifics. My first reading was "the game is not good enough", and I started thinking about redoing the art.&lt;/p&gt;

&lt;p&gt;Instead I went through the portal's published technical requirements one line at a time, looking for anything concrete I might be failing. One line said game mechanics must perform identically on 60Hz, 144Hz and 165Hz monitors. That was the whole clue.&lt;/p&gt;

&lt;p&gt;A reviewer on a high refresh rate monitor would have opened a game running at 2.4x or 2.75x speed. From their side that is a quality problem. It just was not the one I would have guessed.&lt;/p&gt;

&lt;h2&gt;
  
  
  The fix: a fixed timestep accumulator
&lt;/h2&gt;

&lt;p&gt;The common advice is to multiply everything by a delta time. That works, but it means touching every tuned constant and rebalancing the whole game. I had combat timing I was happy with and did not want to retune it.&lt;/p&gt;

&lt;p&gt;A fixed timestep avoids that. &lt;code&gt;update()&lt;/code&gt; keeps meaning exactly 1/60 of a second, and the loop calls it the right number of times for the real time that has passed. This is the loop now in the game, with the comments trimmed:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;_STEP&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;1000&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="mi"&gt;60&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="kd"&gt;let&lt;/span&gt; &lt;span class="nx"&gt;_acc&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;_prevTs&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kc"&gt;null&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;loop&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;ts&lt;/span&gt;&lt;span class="p"&gt;){&lt;/span&gt;
  &lt;span class="k"&gt;try&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nf"&gt;drawBG&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;&lt;span class="nf"&gt;drawGame&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;&lt;span class="nf"&gt;drawFG&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="k"&gt;catch&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;err&lt;/span&gt;&lt;span class="p"&gt;){&lt;/span&gt; &lt;span class="nx"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;error&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;[loop] draw error:&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="nx"&gt;err&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;

  &lt;span class="k"&gt;try&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;ts&lt;/span&gt;&lt;span class="o"&gt;===&lt;/span&gt;&lt;span class="kc"&gt;undefined&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="nx"&gt;ts&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="nx"&gt;performance&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;now&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;_prevTs&lt;/span&gt;&lt;span class="o"&gt;===&lt;/span&gt;&lt;span class="kc"&gt;null&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="nx"&gt;_prevTs&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="nx"&gt;ts&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="kd"&gt;let&lt;/span&gt; &lt;span class="nx"&gt;dt&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="nx"&gt;ts&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nx"&gt;_prevTs&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="nx"&gt;_prevTs&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="nx"&gt;ts&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;dt&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="mi"&gt;250&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="nx"&gt;dt&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;250&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;dt&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="nx"&gt;dt&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="nx"&gt;_acc&lt;/span&gt;&lt;span class="o"&gt;+=&lt;/span&gt;&lt;span class="nx"&gt;dt&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="kd"&gt;let&lt;/span&gt; &lt;span class="nx"&gt;steps&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="k"&gt;while&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;_acc&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;=&lt;/span&gt;&lt;span class="nx"&gt;_STEP&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="nx"&gt;steps&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="mi"&gt;5&lt;/span&gt;&lt;span class="p"&gt;){&lt;/span&gt; &lt;span class="nf"&gt;update&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt; &lt;span class="nx"&gt;_acc&lt;/span&gt;&lt;span class="o"&gt;-=&lt;/span&gt;&lt;span class="nx"&gt;_STEP&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="nx"&gt;steps&lt;/span&gt;&lt;span class="o"&gt;++&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;steps&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;=&lt;/span&gt;&lt;span class="mi"&gt;5&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="nx"&gt;_acc&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="k"&gt;catch&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;err&lt;/span&gt;&lt;span class="p"&gt;){&lt;/span&gt; &lt;span class="nx"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;error&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;[loop] frame error:&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="nx"&gt;err&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="nf"&gt;requestAnimationFrame&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;loop&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Nothing inside &lt;code&gt;update()&lt;/code&gt; changed. Gravity is still &lt;code&gt;0.57&lt;/code&gt;, the jump is still &lt;code&gt;-13.5&lt;/code&gt;, and cooldowns still count in frames, because one update still represents 1/60 of a second.&lt;/p&gt;

&lt;p&gt;Drawing still happens once per animation frame, so a 144Hz screen still renders at 144Hz. Only the simulation is pinned to 60 steps per second.&lt;/p&gt;

&lt;p&gt;It also helps slow devices. If a phone only manages 40fps, the accumulator runs &lt;code&gt;update()&lt;/code&gt; twice on some frames, and the game runs at the correct speed instead of in slow motion.&lt;/p&gt;

&lt;p&gt;(The two &lt;code&gt;try&lt;/code&gt; blocks are there for a separate reason: a single thrown error in the draw code used to stop the loop for good, because the next frame was never requested. That is its own story.)&lt;/p&gt;

&lt;h2&gt;
  
  
  Three details that matter
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Clamp the delta.&lt;/strong&gt; When a tab is backgrounded and comes back, the delta can be many seconds. Without the &lt;code&gt;dt &amp;gt; 250&lt;/code&gt; clamp, the loop tries to simulate all of it at once and locks the page.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Cap the catch-up steps.&lt;/strong&gt; If a device truly cannot keep up, an uncapped &lt;code&gt;while&lt;/code&gt; loop builds a debt it never pays off and the frame rate spirals down. Five steps, then drop the backlog.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Compare the previous timestamp to &lt;code&gt;null&lt;/code&gt;, not to falsy.&lt;/strong&gt; A timestamp of &lt;code&gt;0&lt;/code&gt; is a valid value on the first frame. &lt;code&gt;if (!prev)&lt;/code&gt; treats it as missing.&lt;/p&gt;

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

&lt;p&gt;Test on a high refresh rate device before shipping. I developed on one phone and one laptop, both 60Hz, and that blind spot went out to every player with a newer screen.&lt;/p&gt;

&lt;p&gt;Also, when a rejection is vague, read the platform's technical requirements before deciding what it means. I was ready to rebuild the art. The actual problem was the game loop.&lt;/p&gt;

&lt;p&gt;If you want to see the result, the game is free and runs in the browser: &lt;a href="https://samuraivengeance.com" rel="noopener noreferrer"&gt;https://samuraivengeance.com&lt;/a&gt;&lt;/p&gt;

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