{"by":"arikgalactic","descendants":79,"id":32828309,"kids":[32828943,32830838,32829486,32828904,32835163,32829948,32828651,32828624,32829983,32833197,32831632,32830274,32828397,32835094,32828861,32830851,32829142,32834299,32831212,32831870,32830782,32829641,32834110,32834438,32840317,32832404,32837773,32828310,32828674],"score":238,"text":"As part of the annual JS13K games challenge, I&#x27;ve put together a pretty large (but small-in-code) Metroidvania game that fits in just 13KB of compressed Javascript.<p>The source is available here: <a href=\"https:&#x2F;&#x2F;github.com&#x2F;arikwex&#x2F;infernal-sigil\" rel=\"nofollow\">https:&#x2F;&#x2F;github.com&#x2F;arikwex&#x2F;infernal-sigil</a><p>NOTE: the current head of the main branch is at 13.6KB due to quality of life patches. The legit 13KB version is tagged in github.<p>Useful hacks:\n- Using Roadroller (<a href=\"https:&#x2F;&#x2F;github.com&#x2F;lifthrasiir&#x2F;roadroller\" rel=\"nofollow\">https:&#x2F;&#x2F;github.com&#x2F;lifthrasiir&#x2F;roadroller</a>) for compression\n- Compressing the map data as grayscale PNG paired with some code generation.\n- Using procedural animation for all characters.\n- Replacing string enum with numeric enums for compression.\n- Built a small game engine for object lifecycle and rendering.\n- Single function to generate unique procedural songs for different regions.","time":1663093505,"title":"Show HN: Mini Metroidvania in 13KB of JavaScript","type":"story","url":"https://arineonshark.itch.io/infernal-throne"}