<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/i-made-a-petri-dish-inspired-js-game-uojl8t4dk" -->

---
title: I made a petri-dish inspired JS game | daily.dev
description: A hobby developer built Petri Collider, a browser game where germs spawn from colliding particles controlled via an elastic pull, wind direction, and a...
canonical: https://daily.dev/posts/i-made-a-petri-dish-inspired-js-game-uojl8t4dk
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: I made a petri-dish inspired JS game | daily.dev
og:description: A hobby developer built Petri Collider, a browser game where germs spawn from colliding particles controlled via an elastic pull, wind direction, and a...
og:url: https://daily.dev/posts/i-made-a-petri-dish-inspired-js-game-uojl8t4dk
og:image: https://api.daily.dev/og/posts/UOJl8T4dk.png
og:image:alt: I made a petri-dish inspired JS game
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# I made a petri-dish inspired JS game

**[Kizito](https://daily.dev/sources/ex1ftfdov5fbvq6anckmk)** · [@kizomanizo](https://daily.dev/kizomanizo) · 1 min read · 10 upvotes · 6 comments

## Summary

A hobby developer built Petri Collider, a browser game where germs spawn from colliding particles controlled via an elastic pull, wind direction, and a roulette for germ count. The physics engine is custom-built with vanilla JavaScript, DOM, and Canvas, while the backend uses Node.js, Express, EJS, and SQLite to support persistent global scores and telemetry.

## Content

![image.png](https://media.daily.dev/image/upload/s--KjsLQUIE--/f_auto/v1788537356/ugc/content_51e25eaf-8c54-44bc-b820-37cbbc4afaaf?_a=BAMAMicg0)

I had some spare time, so I built **Petri Collider**, a retro-inspired browser game that simulates germs spawning when particles collide. I saw a similar animation in X asking users to determine collisions or stuff like that.

You control each experiment with:

- An elastic pull that determines launch direction and force
- Changing wind direction and speed
- A roulette that selects the initial number of germs

The physics engine is custom-built with vanilla JavaScript, DOM elements, and Canvas. The app runs on **Node.js, Express, EJS, and SQLite**.

I originally prototyped it as a raw JavaScript experiment, but adding persistent global scores and telemetry made a server-backed architecture worthwhile. Personal statistics could have stayed entirely in the browser, but seeing how other players perform made the game more interesting.

Try it here: [https://petricollider.kizito.co.tz](https://petricollider.kizito.co.tz/)

What is the highest collision score you can get?

#javascript #nodejs #express #webdevelopment #gamedev #opensource #buildinpublic #kizito

## Community discussion

Top comments from developers on daily.dev.

**@simonwarren** · 1 upvotes

> Fun game! Gl beating my score tho ;)

**@agustinbarrientos** · 1 upvotes

> This is a great use of the petri-dish theme. The roulette keeps every run unpredictable, while the wind control gives you just enough influence to feel responsible. I can already see myself blaming the wind after every bad run.

## Similar posts on daily.dev

- [Explore This Tactile UI Powered By Real-Time WebGL Shader](https://daily.dev/posts/explore-this-tactile-ui-powered-by-real-time-webgl-shader-unjsszd7a) · 80 LEVEL · 1 upvotes · 0 comments
- [My Son Loves Squishies, So I Built Him One for the Browser](https://daily.dev/posts/my-son-loves-squishies-so-i-built-him-one-for-the-browser-nn4sdwawb) · DEV · 5 upvotes · 1 comments
- [Simulating Life in the Browser: Creating a Living Particle System for the UntilLabs Website](https://daily.dev/posts/simulating-life-in-the-browser-creating-a-living-particle-system-for-the-untillabs-website-nmsokbiv8) · Codrops · 2 upvotes · 0 comments
- [snow simulation toy](https://daily.dev/posts/snow-simulation-toy-zovadkjzs) · Hacker News · 0 upvotes · 1 comments
- [GTA.js, a reimplementation of the 1997 Grand Theft Auto engine in JavaScript and WebGL](https://daily.dev/posts/gta-js-a-reimplementation-of-the-1997-grand-theft-auto-engine-in-javascript-and-webgl-ysmb4jged) · Bram.us · 346 upvotes · 22 comments

---

Tags: [#javascript](https://daily.dev/tags/javascript), [#game-development](https://daily.dev/tags/game-development), [#nodejs](https://daily.dev/tags/nodejs), [#express](https://daily.dev/tags/express)

[View this post on daily.dev](https://daily.dev/posts/i-made-a-petri-dish-inspired-js-game-uojl8t4dk)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"DiscussionForumPosting","mainEntityOfPage":"https://daily.dev/posts/i-made-a-petri-dish-inspired-js-game-uojl8t4dk","headline":"I made a petri-dish inspired JS game","text":"A hobby developer built Petri Collider, a browser game where germs spawn from colliding particles controlled via an elastic pull, wind direction, and a roulette for germ count. The physics engine is custom-built with vanilla JavaScript, DOM, and Canvas, while the backend uses Node.js, Express, EJS, and SQLite to support persistent global scores and telemetry.","url":"https://daily.dev/posts/i-made-a-petri-dish-inspired-js-game-uojl8t4dk","datePublished":"2026-09-04T16:00:54.929Z","dateModified":"2026-09-13T21:26:50.837Z","author":{"@type":"Person","name":"Kizito","url":"https://daily.dev/kizomanizo","image":"https://lh3.googleusercontent.com/a/AAcHTtf_9jV6bHsBs8P3XMkgVR571XI3Mth0K9aXVStyQc3Rb-8=s96-c","interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"EndorseAction"},"userInteractionCount":1240}},"interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":10},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":6}],"comment":[{"@type":"Comment","text":"Fun game! Gl beating my score tho ;)","datePublished":"2026-09-11T19:45:50.791Z","url":"https://daily.dev/posts/UOJl8T4dk#c-tOY1RuaVs","author":{"@type":"Person","name":"Simon Warren","url":"https://daily.dev/simonwarren","image":"https://media.daily.dev/image/upload/s--O0TOmw4y--/f_auto/v1715772965/public/noProfile"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1}},{"@type":"Comment","text":"This is a great use of the petri-dish theme. The roulette keeps every run unpredictable, while the wind control gives you just enough influence to feel responsible. I can already see myself blaming the wind after every bad run.","datePublished":"2026-09-13T01:51:26.132Z","url":"https://daily.dev/posts/UOJl8T4dk#c-uxPEVjYGg","author":{"@type":"Person","name":"Agustin Barrientos","url":"https://daily.dev/agustinbarrientos","image":"https://media.daily.dev/image/upload/s--5ayxQnqn--/f_auto/v1788281802/avatars/avatar_wQYYVe5Tbj0NJ7C7qPoa8?_a=BAMAMicg0"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1}}],"isPartOf":{"@type":"WebPage","url":"https://daily.dev/sources/ex1ftfdov5fbvq6anckmk","name":"Kizito"}}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Kizito","item":"https://daily.dev/sources/ex1ftfdov5fbvq6anckmk"},{"@type":"ListItem","position":3,"name":"I made a petri-dish inspired JS game"}]}
```

