Making-of Notes
Every game on this site is made and run by one person. Here is how they are built, how the leaderboards are kept fair, and where the site runs.
Built with HTML5 Canvas
All the games are made with nothing but the browser's HTML5 Canvas and JavaScript, without a game engine. There is nothing to install, they load quickly and run smoothly in mobile browsers too. The screen keeps a fixed aspect ratio so the game looks the same on devices of any size.
- Input: keyboard, mouse and touch are all supported. Pointer events let the same code handle all three.
- Graphics: shapes and gradients are drawn in code instead of image files, so the files are tiny and stay sharp at any resolution.
- Saving: your personal best is kept in browser storage, and only leaderboard scores are sent to the server.
- Languages: the games and pages are available in Korean, Japanese and English. The game picks the language from your browser setting, and the language links at the top of each page let you switch.
Keeping the leaderboards honest
If an online leaderboard simply accepts any score, anyone can send a fake high score. So there are a few checks:
- When you start a game, the server issues a session and records the start time.
- When you submit a score, the server calculates the real elapsed time since that start.
- If the score is higher than the maximum the game rules allow in that time, it is rejected. A small margin is added for network delay.
- A session is deleted as soon as it is used, so the same session cannot submit twice.
- Nicknames are length-limited and filtered for special characters, and extra data such as the character is only stored if it is an allowed value.
For Jump Runner, the server repeats the same "speed rises steadily over time" rule to find the maximum score. Fish Dodge earns 10 points per second, so elapsed time × 10 is the limit. Sky Climb is checked against a cap of 80 m of height per second. Neon Shooter uses a points-per-second cap based on how fast enemies appear and the maximum firepower, and the stage saved with the score is limited to the bosses that score could actually defeat. In Orbit the survival time is the score, so a time longer than the real time since the game started is not accepted.
How the site runs
- Hosting: static pages are served by Cloudflare Pages.
- Leaderboard API: runs on Cloudflare Pages Functions, and scores are stored in Cloudflare D1 (a SQLite-based database).
- Source: pushing to the GitHub repository deploys automatically.
The site first used a different host and database, but moved to the current setup for better compatibility with the server environment. Adding a new game only takes one line in the game registry (how many top players to show, the score check, and which extra data to keep), and it reuses the same leaderboard system.
What is next
More mini games are on the way. Send feedback or bug reports to [email protected]. The blog CrazyJ's Lab (in Korean) has more detail about the making process.
Game guides: Jump Runner · Fish Dodge · Sky Climb · Neon Shooter · Orbit