This engine has everything necessary for most games including super fast rendering, physics, particles, sound effects, music, keyboard/mouse/gamepad input handling, update/render loop, and debug tools.
It’s official, “Batafuraiko” is the winner of JS1024! This is one of my favorite game jams because the main restriction is the program must be under 1 kilobyte. I had a blast with my entry and learned a few things working with the other participants on Discord. Thank you to the organizer and other participants. In addition to the winner I summitted 2 other programs: “Digilemma” (a self generating puzzle game that received 3rd place) and “Lightning Storm” (a storm sim with sound and visuals).
In this post I will go through every single line of my 1 kilobyte piano and explain how some of the trickier parts work. The whole thing is open source on GitHub and has a some improvements since my JS1024 submission. So please continue reading and let’s make sweet music together!
Here’s 1Keys running live in a CodePen for you to mess around with. It can be played with either the mouse or keyboard.