DEV Community

Cover image for I built a lightweight Unity-like 2D game engine in JavaScript
Soubhik Mukherjee
Soubhik Mukherjee

Posted on

I built a lightweight Unity-like 2D game engine in JavaScript

kernelplay-js

A lightweight 2D JavaScript game engine inspired by Unity’s component-based architecture.

kernelplay-js is designed to be simple, readable, and flexible — ideal for learning game engine concepts or building small 2D games in the browser.


Features

  • Entity–Component system (Unity-like workflow)
  • Built-in game loop
  • Scene management
  • Canvas-based rendering
  • Lightweight and dependency-free

Installation

npm install kernelplay-js
Enter fullscreen mode Exit fullscreen mode

🔗 GitHub:

kernelplay
kernelplay-js

I mainly built this as a learning project, but I’d love:

  • Feedback on the API
  • Suggestions for features
  • Ideas for demos/examples
  • Contributions if anyone’s interested

If you’re into game dev or curious about building engines, I’d really appreciate your thoughts

Thanks for reading!

Top comments (1)

Collapse
 
soubhik_mukherjee_1e83cd4 profile image
Soubhik Mukherjee

Hey everyone! 👋
I’m the creator of KernelPlay, a lightweight 2D JavaScript game engine inspired by Unity-style ECS.
I’m building this in public, so feedback, ideas, and experiments are very welcome.
Glad to have you here — let’s make some games! 🚀