Радар на почту

Я создал целую экшен-игру в одном HTML-файле

DEV · 12.11.2026 · 22:58

Samurai Vengeance — это платформер с самураями, который включает 1000 уровней и десять боссов, реализованный в одном файле index.html. Игра состоит из 650 КБ кода на JavaScript, CSS и…

Читать в источнике

Оригинал

I built a whole action game in one HTML file

Samurai Vengeance is a side-on samurai action platformer with 1000 stages, ten bosses, a three-hit combo, a parry and a dash. The game itself lives in one file: index.html. It is about 650 KB and roughly 8,800 lines of plain JavaScript, CSS and markup, drawn on HTML canvas with no game engine and no build step. That is mostly true, and the "mostly" is part of this post. Here is how the pieces fit, and where the single-file idea stops. Why one file It was my first game, and one file