<?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: David Chen</title>
    <description>The latest articles on DEV Community by David Chen (@lucemia).</description>
    <link>https://dev.to/lucemia</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%2F3219084%2Ff8c3bd68-8a18-4f2f-89f7-d8988ee9624b.jpeg</url>
      <title>DEV Community: David Chen</title>
      <link>https://dev.to/lucemia</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/lucemia"/>
    <language>en</language>
    <item>
      <title>I let AI agents add 100+ game features to games they'd never seen. A lot of the bugs were mine.</title>
      <dc:creator>David Chen</dc:creator>
      <pubDate>Mon, 30 Nov 2026 06:03:27 +0000</pubDate>
      <link>https://dev.to/lucemia/i-let-ai-agents-add-100-game-features-to-games-theyd-never-seen-a-lot-of-the-bugs-were-mine-f0b</link>
      <guid>https://dev.to/lucemia/i-let-ai-agents-add-100-game-features-to-games-theyd-never-seen-a-lot-of-the-bugs-were-mine-f0b</guid>
      <description>&lt;p&gt;You ask your coding agent for "damage numbers that pop out of the enemy". It says done. Then the numbers float next to the wrong unit, the turn loop freezes, or the game's own autoplay can't finish a run anymore. The request was one sentence. The fix takes an afternoon.&lt;/p&gt;

&lt;p&gt;I wanted that one sentence to be reliable. So I built Game DNA: 100+ browser-game elements, from hit-stop and screen shake to card battles, tactics grids and a 3D kart racer, and tested every one of them the hard way: an agent with no hints adds it to a game it has never seen, and another agent plays the result. More than 700 judged runs later, the most useful finding is uncomfortable. When the agents failed, the cause was surprisingly often in my own docs.&lt;/p&gt;

&lt;p&gt;Here is what's in the library, how the testing works, and the four stories that changed how I build it.&lt;/p&gt;

&lt;h2&gt;
  
  
  What an element is
&lt;/h2&gt;

&lt;p&gt;Each element is three things:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;a small JavaScript module with no dependencies,&lt;/li&gt;
&lt;li&gt;a prompt of at most 600 words that tells &lt;em&gt;your&lt;/em&gt; agent how to wire the module into &lt;em&gt;your&lt;/em&gt; game (it names the interfaces to look for, not a specific engine),&lt;/li&gt;
&lt;li&gt;a playable demo.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Most are drop-in add-ons: feel and effects, UI, audio. About twenty are systems that would replace your core loop, like a card battle or a squad tactics clash; those also come as starter games you can build on. There are 14 art styles, and a basket that merges several elements into one prompt.&lt;/p&gt;

&lt;h2&gt;
  
  
  How an element earns its place
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Cold test.&lt;/strong&gt; A separate coding agent gets a clean folder: a host game it has never seen, the prompt, the module. Nothing else. No hints, no browser of its own, one pinned model at one pinned reasoning effort. The six host games (turn-based battle, tactics map, side-scroller, top-down adventure, two HD games) were written by yet another agent that never saw the modules. Most elements run three times on each of two hosts and must work at least two times out of three on each.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A judge that plays.&lt;/strong&gt; A different agent opens the result in Playwright and plays it. Does the element show up where and when it should? Does the original game still work? Does the game's own autoplay still finish? Was the module file left untouched? The coding agent's own summary of what it did counts for nothing.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A strict visual critic.&lt;/strong&gt; Every demo is scored against commercial indie games, character by character at 2× zoom. Parts that don't connect, programmer art, debug leftovers or a style mismatch are each a major issue. Pass: 7.5 or higher, no majors.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Failures stay in the record.&lt;/strong&gt; Every failed run keeps its cause next to the fix.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Story 1: my prompt fixes made things worse
&lt;/h2&gt;

&lt;p&gt;The first version had no modules, just prompts. Three elements, three cold runs each: 3 of 9 worked. I studied every failure and rewrote the prompts to forbid exactly those mistakes. Next round: 1 of 9. Each fix closed one hole; the agent found another.&lt;/p&gt;

&lt;p&gt;So I flipped it. Ship a module that does the work, and let the prompt only explain how to plug it in. 9 of 9.&lt;/p&gt;

&lt;h2&gt;
  
  
  Story 2: half my conclusions were measurement errors
&lt;/h2&gt;

&lt;p&gt;Then I looked at my own logs. I had never pinned the model. Early runs had silently used a much weaker default; later runs used a stronger one at low effort. My "results" were a mix of both.&lt;/p&gt;

&lt;p&gt;I pinned one model and one effort level and re-ran the experiments that had decided things. Prompt alone: 7 of 9. Prompt plus module: still 9 of 9. And my rule that "systems can't be added to unfamiliar games", based on 0–1 out of 3, became 6 of 6 clean integrations. Starter games went from requirement to option. A cold test without a pinned model and effort is not a measurement.&lt;/p&gt;

&lt;h2&gt;
  
  
  Story 3: five agents, five pink enemies
&lt;/h2&gt;

&lt;p&gt;A match-3 battle starter has a small cold-test task: add a new enemy. The first five runs all failed identically. Every new enemy came out pink.&lt;/p&gt;

&lt;p&gt;The agents had done exactly what our README said. Our sample tinted sprites with CSS &lt;code&gt;hue-rotate()&lt;/code&gt; alone, and at the angle we gave, cyan turns pink. The fix was in our docs: &lt;code&gt;sepia(1) saturate(4)&lt;/code&gt; before the rotation, and the sample colour checked by actually rendering it. Later versions: 16 of 16.&lt;/p&gt;

&lt;p&gt;It happened again with a raycast dungeon starter: 3 of 6, then 5 of 6, then 2 of 2. Every failure was a wrong sample in our README. Agents copy samples word for word. A wrong sample is not a hint; it is a guaranteed bug.&lt;/p&gt;

&lt;h2&gt;
  
  
  Story 4: my critic was too nice
&lt;/h2&gt;

&lt;p&gt;Three demos passed the first visual critic with 7.5 to 8.0. Then I actually looked. Cut-out characters with shields floating in front of their legs and joints showing at the elbows. Geometric placeholder people.&lt;/p&gt;

&lt;p&gt;I wrote a stricter standard and re-scored all 61 demos that existed at the time. 18 passed. Fixing it meant real work: new character rigs with automatic joint checks, a shared set of hand-drawn characters for HD demos, a shared pixel scene kit. 51 passed, then 60 of 61. Later I added a rule that every character is rendered alone on a transparent sheet so loose parts can't hide in a busy frame.&lt;/p&gt;

&lt;p&gt;Two elements never passed and were cut: a pixel-terrain effect stuck at 6.3, and an NPC generator that climbed from 6.5 to 7.4 over six rounds because every name-tag fix created a new problem.&lt;/p&gt;

&lt;h2&gt;
  
  
  Combos: elements that have to share a game
&lt;/h2&gt;

&lt;p&gt;Real games don't get one feature. They get five. The basket checks compatibility (two elements that both want to own the turn loop can't go together), merges the prompts, and drops the module files in one zip. Combos are cold-tested too: damage numbers went into an unseen battle, an unseen tactics game and two starter games, 12 of 12 integrations clean. Under strict placement scoring (every number at the right unit, never mistaken for a neighbour's) it was 10 of 12, and that gap is listed on the element page as a known issue, not hidden.&lt;/p&gt;

&lt;h2&gt;
  
  
  How to use it in 3 steps
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Pick.&lt;/strong&gt; Open &lt;a href="https://game-dna.pages.dev" rel="noopener noreferrer"&gt;https://game-dna.pages.dev&lt;/a&gt;, play a few demos, pick one element, or drop several into the basket for one combined prompt. No game yet? Start from a starter game.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Hand it over.&lt;/strong&gt; Put the module file in your project and paste the prompt into your own coding agent.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Check.&lt;/strong&gt; Each element lists its acceptance moments: what you should see, and when. Play, check those moments, and make sure what you had before still works.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Limits, plainly
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;One agent, one pinned model. Yours may behave differently.&lt;/li&gt;
&lt;li&gt;Three runs per host is a small sample. A pass means "went in cleanly most of the time on games it hadn't seen", not "always works".&lt;/li&gt;
&lt;li&gt;Hosts are small single-file canvas games. Big projects and other engines are untested.&lt;/li&gt;
&lt;li&gt;3D frame times were measured on a busy machine with software WebGL. Treat them as upper bounds.&lt;/li&gt;
&lt;li&gt;Some demo art was made with an AI image generator and is marked ✦ AI art. The modules never call a generator; most art is drawn in code.&lt;/li&gt;
&lt;li&gt;The mechanics are common genre patterns, the art is original, and the project isn't affiliated with any game company.&lt;/li&gt;
&lt;/ul&gt;

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

&lt;p&gt;The code is MIT: &lt;a href="https://github.com/lucemia/game-dna" rel="noopener noreferrer"&gt;https://github.com/lucemia/game-dna&lt;/a&gt;. If an element fails in your game, I want that failure more than a star. Open an issue with what your agent did, and it goes into the record like every other failure.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;a href="https://game-dna.pages.dev" rel="noopener noreferrer"&gt;https://game-dna.pages.dev&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;

</description>
      <category>gamedev</category>
      <category>ai</category>
      <category>javascript</category>
      <category>opensource</category>
    </item>
    <item>
      <title>typed-ffmpeg 3.0: Strongly-Typed FFmpeg Interface for Python with Visual Playground</title>
      <dc:creator>David Chen</dc:creator>
      <pubDate>Wed, 28 May 2025 17:54:00 +0000</pubDate>
      <link>https://dev.to/lucemia/typed-ffmpeg-30-strongly-typed-ffmpeg-interface-for-python-with-visual-playground-1ep9</link>
      <guid>https://dev.to/lucemia/typed-ffmpeg-30-strongly-typed-ffmpeg-interface-for-python-with-visual-playground-1ep9</guid>
      <description>&lt;p&gt;🎬 typed-ffmpeg 3.0 – A Strongly-Typed Python Interface to FFmpeg + Interactive Playground&lt;/p&gt;

&lt;p&gt;If you’ve ever written long, fragile FFmpeg command strings and wished for a better developer experience, typed-ffmpeg might be what you’re looking for.&lt;/p&gt;

&lt;p&gt;It brings autocomplete, type safety, validation, and now even a visual editor to FFmpeg workflows—all from Python.&lt;/p&gt;

&lt;p&gt;GitHub: &lt;a href="https://github.com/livingbio/typed-ffmpeg" rel="noopener noreferrer"&gt;https://github.com/livingbio/typed-ffmpeg&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;⸻&lt;/p&gt;

&lt;p&gt;🚀 What typed-ffmpeg Does&lt;/p&gt;

&lt;p&gt;typed-ffmpeg lets you build FFmpeg filter graphs in Python using a typed, object-oriented API. It solves common issues with tools like ffmpeg-python, such as: Missing type hints and autocomplete&lt;/p&gt;

&lt;p&gt;It also introduces:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;JSON serialization of graphs&lt;/li&gt;
&lt;li&gt;FFmpeg command validation and auto-correction&lt;/li&gt;
&lt;li&gt;Reverse CLI parsing (in v3.0)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;⸻&lt;/p&gt;

&lt;p&gt;👥 Who It’s For&lt;/p&gt;

&lt;p&gt;If you work with video/audio processing and want to:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Automate FFmpeg workflows in production&lt;/li&gt;
&lt;li&gt;Build content/media pipelines for research or education&lt;/li&gt;
&lt;li&gt;Debug and share filter graphs more easily&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;⸻&lt;/p&gt;

&lt;p&gt;🔄 What’s New in v3.0&lt;/p&gt;

&lt;p&gt;Here are the highlights from the latest release:&lt;/p&gt;

&lt;p&gt;✅ Source Filter Support&lt;/p&gt;

&lt;p&gt;Use FFmpeg source filters like color, anullsrc, testsrc, etc., with full autocomplete and type safety.&lt;/p&gt;

&lt;p&gt;Docs: &lt;a href="https://livingbio.github.io/typed-ffmpeg/usage/complex-filtering/#applying-source-filters" rel="noopener noreferrer"&gt;https://livingbio.github.io/typed-ffmpeg/usage/complex-filtering/#applying-source-filters&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;✅ Input Stream Selection&lt;/p&gt;

&lt;p&gt;Now supports stream specifiers (e.g., [0:v], [1:a]) across multiple inputs.&lt;/p&gt;

&lt;p&gt;Docs: &lt;a href="https://livingbio.github.io/typed-ffmpeg/usage/basic-api-usage/#stream-selection" rel="noopener noreferrer"&gt;https://livingbio.github.io/typed-ffmpeg/usage/basic-api-usage/#stream-selection&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;🧪 Interactive Playground&lt;/p&gt;

&lt;p&gt;A new visual tool to build, edit, and test FFmpeg filter graphs:&lt;/p&gt;

&lt;p&gt;🔗 &lt;a href="https://livingbio.github.io/typed-ffmpeg-playground/" rel="noopener noreferrer"&gt;https://livingbio.github.io/typed-ffmpeg-playground/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Features:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Drag-and-drop filter graph builder&lt;/li&gt;
&lt;li&gt;Generates both FFmpeg CLI and typed-ffmpeg Python code&lt;/li&gt;
&lt;li&gt;Paste any FFmpeg CLI to reverse-parse it into a visual graph&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;🧱 Internal APIs for Tooling&lt;/p&gt;

&lt;p&gt;v3.0 also introduces:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;parse cli to graph: – Convert FFmpeg CLI to internal graph objects&lt;/li&gt;
&lt;li&gt;generate python code: – Emit typed-ffmpeg code from a graph&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;These make it easier to build advanced tooling or plugins around FFmpeg logic.&lt;/p&gt;

&lt;p&gt;⸻&lt;/p&gt;

&lt;p&gt;📦 Installation&lt;/p&gt;

&lt;p&gt;pip install -U typed-ffmpeg&lt;/p&gt;

</description>
      <category>python</category>
      <category>ffmpeg</category>
      <category>typehint</category>
    </item>
  </channel>
</rss>
