Get the latest tech news
Show HN: A remake of my 2004 PDA video game
This article is a technical discussion of how the 2024 remake was built. You can play the game online, or read an older article about the 2004 version.
Both are non-essential (the game can be played without full-screen mode and without audio), and on most platforms the two follow the same logic of being denied until the user first interacts with the page, after which they are automatically granted. The entire darklaga.bin is mapped as an ArrayBuffer, and views over subsets of that buffer are then passed to the various APIs ( TextDecoder for extracting the JavaScript, URL.createObjectUrl() for the WebGL texture atlas, etc.) To keep the free web alive, I have a duty to make your browser connect to my server without a huge organization in the middle having the power to treat either of us as a robot, a spammer, or a criminal.
Or read this on Hacker News