<?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: C. Wheatley</title>
    <description>The latest articles on DEV Community by C. Wheatley (@bsymbolic).</description>
    <link>https://dev.to/bsymbolic</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.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3982019%2F8beb5d78-be18-44b4-b2f8-1a9e798a54e2.jpeg</url>
      <title>DEV Community: C. Wheatley</title>
      <link>https://dev.to/bsymbolic</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/bsymbolic"/>
    <language>en</language>
    <item>
      <title>Lava Leap: Shipping an Endless Climber with an AI Pair Programmer</title>
      <dc:creator>C. Wheatley</dc:creator>
      <pubDate>Sat, 13 Jun 2026 00:12:38 +0000</pubDate>
      <link>https://dev.to/bsymbolic/lava-leap-shipping-an-endless-climber-with-an-ai-pair-programmer-30f3</link>
      <guid>https://dev.to/bsymbolic/lava-leap-shipping-an-endless-climber-with-an-ai-pair-programmer-30f3</guid>
      <description>&lt;p&gt;Lava Leap is an endless vertical climber: you scale procedurally generated platforms while lava rises from below, and your score is your height plus the coins you grab on the way up. I built it with Claude as a pair programmer over two release cycles, and it's now public on &lt;a href="https://github.com/denrod25-del/lava-leap" rel="noopener noreferrer"&gt;GitHub&lt;/a&gt; at v0.2.0.&lt;/p&gt;

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

&lt;p&gt;The core loop is simple to describe and hard to put down. You run, jump, double jump, wall slide, wall jump, and air dash your way up a tower of platforms that never ends. Some platforms crumble under your feet, some move, and the lava below accelerates the longer you survive. Die, see your score, press Space, go again. Your best run persists in localStorage.&lt;/p&gt;

&lt;p&gt;Around that loop, version 0.2.0 added the things that make a small game feel like a finished one: named zones with their own palettes and lava pacing (the Volcanic Throat's sub-zones turn over roughly every 1000 height units — Magma Vault at 0, The Forge at 1000, Ashfall at 2000, and Obsidian Crown at 3000 — each raising lava speed and biasing toward harder platform types), hand-authored set-piece chunks injected into the random stream, achievements, a daily challenge seed, a cosmetics shop that spends banked coins, procedural chiptune music, eight synthesized sound effects, pause and settings menus, and a crash-recovery overlay so an unhandled error never strands you on a blank canvas.&lt;/p&gt;

&lt;p&gt;The stack is Phaser 3, TypeScript, and Vite, with Vitest for unit tests and Playwright for end-to-end smoke tests. The pixel art player and tiles were generated with PixelLab. Clone the &lt;a href="https://github.com/denrod25-del/lava-leap" rel="noopener noreferrer"&gt;repo&lt;/a&gt; and run &lt;code&gt;npm run dev&lt;/code&gt; to see it move — a game about momentum is better experienced than screenshotted.&lt;/p&gt;

&lt;h2&gt;
  
  
  How it was built
&lt;/h2&gt;

&lt;p&gt;The division of labor was consistent: I decided what the game should be, Claude wrote nearly all of the code. We started with a brainstorming session that produced a design spec, then a plan that broke v1 into 28 test-driven tasks across 8 milestones. Claude implemented each milestone with separate reviewer passes, and I played the build live before signing off on each one. v1 shipped in 31 commits; v2 repeated the process with 9 more milestones.&lt;/p&gt;

&lt;p&gt;The architectural decision I care most about is &lt;strong&gt;parametric reachability&lt;/strong&gt;: every generated level is provably climbable. The generator doesn't place platforms randomly and hope. It clamps every next platform inside the player's actual movement envelope — jump height, double-jump extension, dash distance — using reach-budget constants that live in one tuning file alongside the physics values they're derived from. Difficulty scaling raises the lava speed and biases toward crumbling and moving platforms as you climb, but it never places a gap the movement system can't cross. The generator alone has 12 unit tests asserting this. When v2 added hand-authored set-piece chunks, they had to pass a &lt;code&gt;validateChunk&lt;/code&gt; gate that rejects any template exceeding the reach widths — and, after a reviewer pass caught it, any template that puts coins on crumbling platforms, which created sucker bets the player couldn't win.&lt;/p&gt;

&lt;p&gt;The second load-bearing piece is a typed &lt;strong&gt;event spine&lt;/strong&gt;: a small, framework-free event emitter in &lt;code&gt;src/core/events.ts&lt;/code&gt;. Gameplay code emits events (platform landed, coin collected, death) and everything else subscribes — achievements, run analytics, the audio director, score popups. That's what made v2's feature pile tractable: the achievements system never touches the player class. One naming landmine: the field on the game scene is &lt;code&gt;gameEvents&lt;/code&gt;, because &lt;code&gt;events&lt;/code&gt; already exists on &lt;code&gt;Phaser.Scene&lt;/code&gt; and shadowing it breaks the scene lifecycle.&lt;/p&gt;

&lt;p&gt;The juice pass came last and mattered more than I expected: squash-and-stretch on landings, dust particles, screen shake, floating score popups, drifting embers, and a slow-motion beat on death. Even the audio is code — &lt;code&gt;tools/gen-music.mjs&lt;/code&gt; synthesizes the chiptune loops from scratch, so the repo contains no purchased third-party asset packs — sprites are PixelLab-generated and all audio is regenerable from the synthesis scripts.&lt;/p&gt;

&lt;h2&gt;
  
  
  The gotchas
&lt;/h2&gt;

&lt;p&gt;Three real ones, each of which cost real debugging time.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;A bare &lt;code&gt;tsc&lt;/code&gt; in the build script silently shadowed our sources.&lt;/strong&gt; The build ran &lt;code&gt;tsc &amp;amp;&amp;amp; vite build&lt;/code&gt;, and &lt;code&gt;tsc&lt;/code&gt; emitted compiled &lt;code&gt;.js&lt;/code&gt; files next to their &lt;code&gt;.ts&lt;/code&gt; sources. Vite resolves &lt;code&gt;.js&lt;/code&gt; before &lt;code&gt;.ts&lt;/code&gt;, so the dev server started serving stale compiled output while we edited the TypeScript — changes just stopped appearing. The fix is &lt;code&gt;"noEmit": true&lt;/code&gt; in &lt;code&gt;tsconfig.json&lt;/code&gt; (the build only needs &lt;code&gt;tsc&lt;/code&gt; as a type-check; Vite does the bundling). The rule we took away: never let stray &lt;code&gt;.js&lt;/code&gt; files sit in &lt;code&gt;src/&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;You can't reliably screenshot a WebGL game, so verify behaviorally.&lt;/strong&gt; Phaser's canvas doesn't set &lt;code&gt;preserveDrawingBuffer&lt;/code&gt;, so screenshots taken between frames come back blank or flaky. Synthetic &lt;code&gt;KeyboardEvent&lt;/code&gt;s with &lt;code&gt;keyCode&lt;/code&gt; are ignored by the browser, so you can't fake input that way either. Our fix: in dev builds the game instance is exposed as &lt;code&gt;window.__game&lt;/code&gt;, and verification reads scene and physics state directly — player y-position, lava height, platform counts — instead of pixels. Input is driven by setting Phaser &lt;code&gt;Key.isDown&lt;/code&gt; flags and stepping the player update, or emitting &lt;code&gt;keydown-SPACE&lt;/code&gt; on &lt;code&gt;scene.input.keyboard&lt;/code&gt; for menu handlers. Related: a hidden browser tab stops &lt;code&gt;requestAnimationFrame&lt;/code&gt;, which freezes the whole game loop mid-test — you can pump frames manually with &lt;code&gt;game.step()&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;code&gt;scene.start()&lt;/code&gt; stops the scene that calls it.&lt;/strong&gt; Opening Settings from the main menu used &lt;code&gt;scene.start('Settings')&lt;/code&gt;, which silently stopped the Menu scene. Backing out of Settings then revealed... nothing. A black screen, because the menu no longer existed. The fix is that Settings must explicitly &lt;code&gt;scene.start('Menu')&lt;/code&gt; on exit rather than assuming there's a live scene to return to. If you're using Phaser's scene manager for overlay-style screens, &lt;code&gt;launch&lt;/code&gt;/&lt;code&gt;pause&lt;/code&gt; semantics versus &lt;code&gt;start&lt;/code&gt; semantics will bite you exactly once.&lt;/p&gt;

&lt;h2&gt;
  
  
  What shipped
&lt;/h2&gt;

&lt;p&gt;v0.2.0 is live and public at &lt;a href="https://github.com/denrod25-del/lava-leap" rel="noopener noreferrer"&gt;github.com/denrod25-del/lava-leap&lt;/a&gt;: the full climb loop, four-stage zone progression, set-pieces, achievements, daily seeds, a shop, procedural music and SFX, pause/settings, and crash recovery. The test suite stands at 51 unit tests across 12 files plus 2 Playwright end-to-end tests, and every milestone in both releases was reviewed and verified live before merge.&lt;/p&gt;

&lt;p&gt;This is the first post in a series on projects built this way — there are about 27 more in the queue. The running list is on the &lt;a href="https://dev.to/projects/"&gt;projects page&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>gamedev</category>
      <category>phaser</category>
      <category>typescript</category>
      <category>ai</category>
    </item>
  </channel>
</rss>
