<?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: Moss &amp; Glow</title>
    <description>The latest articles on DEV Community by Moss &amp; Glow (@mossandglow).</description>
    <link>https://dev.to/mossandglow</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%2F4267034%2F242443b5-6843-4709-8ba3-db4dfb994810.png</url>
      <title>DEV Community: Moss &amp; Glow</title>
      <link>https://dev.to/mossandglow</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/mossandglow"/>
    <language>en</language>
    <item>
      <title>I didn't tune 400 puzzle levels by hand. I wrote bots to play them for me</title>
      <dc:creator>Moss &amp; Glow</dc:creator>
      <pubDate>Thu, 26 Nov 2026 13:44:50 +0000</pubDate>
      <link>https://dev.to/mossandglow/i-didnt-tune-400-puzzle-levels-by-hand-i-wrote-bots-to-play-them-for-me-3a5b</link>
      <guid>https://dev.to/mossandglow/i-didnt-tune-400-puzzle-levels-by-hand-i-wrote-bots-to-play-them-for-me-3a5b</guid>
      <description>&lt;p&gt;Level 1 of my game took me an afternoon to balance.&lt;/p&gt;

&lt;p&gt;Level 400 took zero minutes. A bot played it hundreds of times while I slept, picked the drop limit and the star scores, and wrote them into the level file.&lt;/p&gt;

&lt;p&gt;That's the only reason a solo dev with no studio and no budget could ship &lt;strong&gt;400 physics puzzle levels&lt;/strong&gt;. This week the game also made its first sale, to a stranger.&lt;/p&gt;

&lt;p&gt;The game is &lt;strong&gt;Moss &amp;amp; Glow&lt;/strong&gt;, a cozy drop-merge puzzle on Google Play. You drop little forest creatures into a jar; two of the same kind touch and merge into the next one. Physics makes it feel alive, and physics is exactly what makes it impossible to balance by hand.&lt;/p&gt;

&lt;p&gt;Here's how I built it (Phaser 4 + Capacitor), how the bots work, and the honest numbers two weeks after launch, including the one that's keeping me up at night.&lt;/p&gt;

&lt;h2&gt;
  
  
  The stack
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Phaser 4&lt;/strong&gt; + &lt;strong&gt;TypeScript&lt;/strong&gt; for the game&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Matter.js&lt;/strong&gt; (through Phaser) for the physics, because the merges have to feel soft and bouncy&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Vite&lt;/strong&gt; for builds&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Capacitor 8&lt;/strong&gt; to wrap it as a native Android app&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;RevenueCat&lt;/strong&gt; for in-app purchases, &lt;strong&gt;Firebase/GA4&lt;/strong&gt; for analytics, &lt;strong&gt;Supabase&lt;/strong&gt; for the small backend bits&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Writing a mobile game as a web app and wrapping it worked well for a solo dev. I get hot reload in the browser for 95% of the work and only touch Android Studio for builds and native plugins. The catch is that you still have to test on a real phone. Touch feel, safe areas, the back button, audio focus and ad SDKs all behave differently there than in a desktop browser.&lt;/p&gt;

&lt;h2&gt;
  
  
  The hard part wasn't the code, it was 400 levels
&lt;/h2&gt;

&lt;p&gt;I wanted a game you could play for months, so I set the bar at 400 levels across 20 seasons, each season adding something new (ice blocks, fireflies, pebbles, wind, two goals at once...).&lt;/p&gt;

&lt;p&gt;Hand-tuning 400 physics levels isn't realistic for one person. Physics is chaotic: the same level can feel easy on one run and impossible on the next. So I wrote &lt;strong&gt;bots&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;The game logic runs &lt;strong&gt;headless in Node&lt;/strong&gt;, without rendering. A few bots with different skill levels (a "decent" player, a "careful" player) each play every level many times. For each run I record the drop on which the goal was met. Then the level's numbers come straight from those results:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Drop budget:&lt;/strong&gt; the fewest drops at which a normal player nearly always wins&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;2 and 3 stars:&lt;/strong&gt; how many drops a good player usually has left over, so 3 stars feels a little hard but fair&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;One command (&lt;code&gt;npm run calibrate -- --from 201 --to 220 --write&lt;/code&gt;) plays the levels, picks the numbers and writes them back into the level file. Levels that are already live are &lt;strong&gt;locked&lt;/strong&gt;, so a re-tune never takes stars away from real players.&lt;/p&gt;

&lt;p&gt;This one tool is probably the best investment I made. Without it, levels 1–400 would never have shipped.&lt;/p&gt;

&lt;h2&gt;
  
  
  Things I didn't expect
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;1. Ad networks are harder than the game.&lt;/strong&gt; My first two ad network applications were rejected (one after an appeal) before a third approved me. If you plan to earn from ads, apply &lt;em&gt;months&lt;/em&gt; before launch, not the week of it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. "Cozy" is a design rule, not an art style.&lt;/strong&gt; Every time I added pressure (timers, harsh fail screens, pushy popups), testers got annoyed. Taking it out made the game better. Ads are now short, and buying "No Ads" removes them for good.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. Store pages matter more than I thought.&lt;/strong&gt; My first screenshots were "fine". Fine doesn't get clicks. I'm now testing a connected panorama style where each screenshot flows into the next.&lt;/p&gt;

&lt;h2&gt;
  
  
  The numbers (honest version)
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;400 levels, 21 creatures, 20 seasons&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;First real sale this week:&lt;/strong&gt; someone I don't know bought "No Ads". It was a few dollars, but it's the first proof that the whole pipeline (Play Billing → RevenueCat → the game) works for a real player.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The big problem:&lt;/strong&gt; day-1 retention is around &lt;strong&gt;8%&lt;/strong&gt;. People who stay play ~18 minutes a day, but most never come back after the first day. That's what I'm working on next: a gentle "remind me to play tomorrow" option after a win, and a reason to return each morning.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you've solved day-1 retention in a casual game, I'd really like to hear what worked for you.&lt;/p&gt;

&lt;h2&gt;
  
  
  A note on the art
&lt;/h2&gt;

&lt;p&gt;The code, levels and design are mine. Some of the art was made with AI help and then edited by me. As a solo dev with no art budget, that's what let me give 21 creatures a consistent painted look.&lt;/p&gt;

&lt;h2&gt;
  
  
  Try it
&lt;/h2&gt;

&lt;p&gt;Moss &amp;amp; Glow is free on Android:&lt;br&gt;
👉 &lt;strong&gt;&lt;a href="https://play.google.com/store/apps/details?id=com.mossandglow.game&amp;amp;referrer=utm_source%3Ddevto%26utm_medium%3Dpost%26utm_campaign%3Ddevlog1" rel="noopener noreferrer"&gt;Moss &amp;amp; Glow on Google Play&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Next post: how the headless bots work in more detail (Matter.js in Node, seeded randomness, and keeping the sim in sync with the real game). Follow if that sounds useful.&lt;/p&gt;

&lt;p&gt;Feedback is welcome, especially harsh feedback on the first 5 minutes. 🌿&lt;/p&gt;

</description>
      <category>gamedev</category>
      <category>typescript</category>
      <category>android</category>
      <category>indiedev</category>
    </item>
  </channel>
</rss>
