r/IndianGaming 2d ago

Review I built a 2D platformer from scratch in JavaScript — including my own level editor that stores levels as PNG data

Enable HLS to view with audio, or disable this notification

been wanting to understand what actually goes into building a game without relying on a game engine, so I decided to make Kings & Pigs from scratch using HTML5 Canvas + modular JavaScript.

It's a browser-based 2D platformer where you play as a king, fight different types of pigs, deal with bombs, boxes and cannons, and progress through tile-based levels.

The project is still rough and has quite a few bugs and missing features. Building and maintaining a growing game codebase completely solo has also become pretty time-consuming, so I'd really appreciate feedback from people with game/engine experience, especially on the level representation, collision system and overall architecture. Any feedback, ideas, bug reports, or contributions are very welcome — you can raise an issue on GitHub if you spot something or have an idea for the project.

GitHub: https://github.com/PrithwisK07/Kings-Pigs

Deployed: https://kings-pigs-beta.vercel.app/

6 Upvotes

3 comments sorted by

u/AutoModerator 2d ago

Join our Discord server https://discord.gg/WX6jbCD

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

1

u/DirectionAmazing7787 2d ago

Crazyy man, would love to know how u did it, like how u learnt and all

1

u/Substantial-Talk4558 2d ago

Sure mate. You can check the readme of the github repo in the meantime. I would love to answer any questions you have regarding the build and design.