<?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: See The Future</title>
    <description>The latest articles on DEV Community by See The Future (@seethefutureco).</description>
    <link>https://dev.to/seethefutureco</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%2F4257630%2F088ca561-7fa3-4c12-b610-ea390a6dfb4c.png</url>
      <title>DEV Community: See The Future</title>
      <link>https://dev.to/seethefutureco</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/seethefutureco"/>
    <language>en</language>
    <item>
      <title>How We Built a Zero-Framework Daily Competitive Browser Gaming Platform with Server-Replayed Anti-Cheat</title>
      <dc:creator>See The Future</dc:creator>
      <pubDate>Sat, 21 Nov 2026 16:25:08 +0000</pubDate>
      <link>https://dev.to/seethefutureco/how-we-built-a-zero-framework-daily-competitive-browser-gaming-platform-with-server-replayed-gi1</link>
      <guid>https://dev.to/seethefutureco/how-we-built-a-zero-framework-daily-competitive-browser-gaming-platform-with-server-replayed-gi1</guid>
      <description>&lt;p&gt;When we started building &lt;strong&gt;&lt;a href="https://artificialgames.online" rel="noopener noreferrer"&gt;Artificial Games&lt;/a&gt;&lt;/strong&gt; at &lt;strong&gt;STF&lt;/strong&gt;, we had one strict constraint: &lt;strong&gt;zero frontend frameworks, zero build step bloat, and instant play on any mobile or desktop browser.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Every game in our growing catalog runs on &lt;strong&gt;Vanilla ES Modules + HTML5 Canvas + Web Audio API&lt;/strong&gt;, with a synchronized &lt;strong&gt;00:00 UTC daily seed&lt;/strong&gt; so every player worldwide competes on the exact same procedural board every day.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Hardest Problem: Trusting Client Scores
&lt;/h2&gt;

&lt;p&gt;In browser arcade games, client-side score submission is trivially spoofable (&lt;code&gt;fetch('/score', { score: 9999999 })&lt;/code&gt;).&lt;/p&gt;

&lt;p&gt;Instead of trusting the browser, we designed a &lt;strong&gt;deterministic replay verification pipeline&lt;/strong&gt;:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Deterministic PRNG (&lt;code&gt;mulberry32&lt;/code&gt;)&lt;/strong&gt;: Every game module imports a pure seeded PRNG and zero &lt;code&gt;Math.random()&lt;/code&gt;. Given &lt;code&gt;(seed, inputs)&lt;/code&gt;, the simulation produces the exact same score down to the tick.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Packed Input Recording&lt;/strong&gt;: While you play, the stage engine records compact &lt;code&gt;(tick, action)&lt;/code&gt; tuples — including mouse/touch drags, steering masks, and taps.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Server-Side Replay on Supabase Edge Functions&lt;/strong&gt;: When a run finishes, the client sends the input tape (plus a short-lived signed run token) to our Deno Edge Function. The server imports the &lt;em&gt;exact same&lt;/em&gt; game module, replays every tick headlessly, and only writes the score to the global leaderboard if the replayed score matches.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Performance Without a Bundler
&lt;/h2&gt;

&lt;p&gt;Running pure ES Modules in production taught us a few lessons:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Immutable Cache-Busting (&lt;code&gt;?v=&amp;lt;sha256&amp;gt;&lt;/code&gt;)&lt;/strong&gt;: Every &lt;code&gt;.js&lt;/code&gt; and &lt;code&gt;.css&lt;/code&gt; import is content-hashed with a fixpoint stamper and served with &lt;code&gt;Cache-Control: public, max-age=31536000, immutable&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Lazy Dynamic Imports&lt;/strong&gt;: Players only download the exact game they click (&lt;code&gt;() =&amp;gt; import("../games/&amp;lt;key&amp;gt;.js")&lt;/code&gt;). Opening a puzzle or 3D racing game takes milliseconds.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Mobile-First Controls&lt;/strong&gt;: Every game maps cleanly to touch (multi-touch D-Pad + Action pad, drag slingshots, or single-tap boards) with haptic feedback (&lt;code&gt;navigator.vibrate&lt;/code&gt;).&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Competitive Features That Keep Players Coming Back
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Daily Triathlon&lt;/strong&gt;: 3 procedurally selected games each day across different genres with a shareable score grid.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Private Friend Leagues&lt;/strong&gt;: 6-character invite codes that unlock a Friends-only leaderboard tab inside every game.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Ghost Replays&lt;/strong&gt;: Race against the #1 player's recorded run in real time.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Hard Diamond (💎) Medals&lt;/strong&gt;: Calibrated per game for genuine top-1% mastery.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Try It Free (Zero Downloads)
&lt;/h2&gt;

&lt;p&gt;You can play immediately in your browser — desktop or mobile, no account required:&lt;/p&gt;

&lt;p&gt;👉 &lt;strong&gt;&lt;a href="https://artificialgames.online" rel="noopener noreferrer"&gt;Play Artificial Games&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;We'd love feedback from fellow web &amp;amp; game devs on the architecture, 3D Canvas projection math, or anti-cheat design!&lt;/p&gt;

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