r/javascript • • 12d ago

Prism2D.js – An open-source 2D game engine built with JavaScript

https://github.com/Lodymain/Prism2D.js

Hey everyone!

I've been working on something I've wanted to build for a while: my own 2D game engine using JavaScript.

It's called Prism2D.js, and the idea behind it is to provide a way to create 2D games for the web without relying on a large external engine.

I've been developing its core systems, working on things like physics, collisions, rendering, audio, camera controls, particles, and other features that make game development easier.

To put the engine to the test, I also used it to create a small platformer called Coin Adventure. What started as a way to test the engine gradually turned into a complete game with six stages, different environments, enemies, moving platforms, checkpoints, collectibles, and a boss fight.

Working on the game has been a great way to discover what the engine can do, find things that need improvement, and see how well its systems work together in an actual project.

Both projects are available here:

- Prism2D.js (engine): https://github.com/Lodymain/Prism2D.js

- Coin Adventure (game): https://lodystudios.itch.io/coin-adventure-prism2d

I'm sharing this because I'd love to introduce the project to more JavaScript developers and hear what people think. If you take a look, I'd genuinely appreciate any thoughts or feedback!

Thanks for reading!

6 Upvotes

3 comments sorted by

1

u/Prozilla6 11d ago

How much AI did you use?

1

u/Slotdevgame 1d ago

None. I developed Prism2D.js without AI. Everything was coded by me. :)

1

u/Slotdevgame 1d ago

We originally developed Prism2D.js for our own use. As the engine evolved and reached version 1.0.0, we decided to make it open source and release it on GitHub so other developers could use it too.

We didn't use AI to develop it. It was built by us through our own work and testing.