Portfolio/Mewgenics Genetic System

Mewgenics Genetic System

A Unity prototype replicating the genetic breeding mechanics from Mewgenics — genes, traits, inheritance, and mutations fully simulated in C#, with 21 unit tests and a seeded console runner.

DateApr. 2026
RoleSolo Developer
Duration1 week
Mewgenics Genetic System

About the Project

Mewgenics Genetic System is a Unity prototype built to explore how the breeding mechanics from Mewgenics could be implemented from scratch. Each entity carries a full genetic makeup — dominant and recessive alleles, trait expression, and heritable mutations — and the system simulates cross-breeding between two individuals to produce offspring with statistically plausible genetics.

The architecture is data-driven and modular: genes are defined as ScriptableObjects, traits are resolved at runtime by evaluating allele combinations, and the mutation system introduces random variations with configurable probability. The project ships with 21 unit tests across three suites (BreedingServiceTests, CatStatResolverTests, GenomeRulesTests), three interactive console demos, and a seeded RNG that makes every breeding run fully reproducible.

The project started as a curiosity after playing Mewgenics — I wanted to understand how to model genetics in a game engine in a way that was flexible, readable, and easy to extend. The full implementation is open source on GitHub.

Technologies

UnityC#ScriptableObjects

Tools & Platforms

Unity EditorVS CodeGitHub

Key Features

Dominant/recessive allele model
Cross-breeding simulation with full breeding log
Random mutations with configurable probability
Data-driven gene definitions via ScriptableObjects
21 unit tests across 3 suites (BreedingService, CatStatResolver, GenomeRules)
Seeded RNG for fully reproducible breeding runs
ASCII genome renderer for visual debugging