DEV Community

Cover image for # ⚙️ I Spent Months Building a Pixel-Art Universe Called *Cog & Cosmos* 🌌
Shaan Satsangi
Shaan Satsangi

Posted on

# ⚙️ I Spent Months Building a Pixel-Art Universe Called *Cog & Cosmos* 🌌

Every developer eventually faces a difficult choice:

  • Build another to-do app.
  • Or create an absurdly over-engineered game with eight interconnected worlds, giant numbers, prestige systems, and enough gears to make a Victorian engineer cry tears of joy.

Naturally, I chose chaos.

🚀 Introducing Cog & Cosmos: The Fortune Engine

Cog & Cosmos is a pixel-art incremental/idle game where every world remains connected.

Unlike many idle games where older stages become irrelevant, here everything feeds everything else:

🏘️ Village → 🌾 Farm → ⛏️ Mine → 🏭 Factory → ✨ Magic → 🚀 Space → ⏳ Time → 🌌 Multiverse

All of them are tied together by a massive Fortune Engine, which converts surplus resources into Fortune ★, the universal currency powering the entire game.


✨ Features

  • 8 interconnected stages
  • Multiple prestige layers
  • Global skill tree
  • Achievements system
  • Challenges and medals
  • Collections and relics
  • Offline progress
  • Cloud sync support
  • Pixel-art scenes powered by PixiJS
  • Mobile-friendly PWA
  • Big-number math thanks to break_eternity.js

Because apparently normal numbers weren't dramatic enough.


🛠 Tech Stack

  • Svelte 5
  • TypeScript
  • PixiJS v8
  • Vite
  • break_eternity.js
  • IndexedDB + lz-string

Built entirely with free tools.


📚 What I Learned

Building this project taught me:

  • Game architecture is wild.
  • Balancing economies is harder than debugging.
  • Players will somehow become richer than the GDP of small countries.
  • "I'll just add one more feature" is a dangerous sentence.

🎮 Play the Game

👉 https://shaan-alpha.github.io/Cog-and-Cosmos/

⭐ GitHub Repository

👉 https://github.com/Shaan-alpha/Cog-and-Cosmos

If you enjoy game development, idle games, or watching numbers become larger than the observable universe, I'd love to hear your thoughts.

And if my projects interest you, consider following me on GitHub. More strange creations are currently brewing inside my digital workshop. ⚙️🚀


Built with free tools and a questionable amount of enthusiasm.

gamedev #indiedev #webdev #typescript #svelte #pixijs #opensource #javascript #github

Top comments (0)