Show HN: Rokz: a browser port of a 1990 ASCII dungeon crawler https://ift.tt/pILrtGz
Show HN: Rokz: a browser port of a 1990 ASCII dungeon crawler For those younger than me, Kroz was Apogee's first game, a text-mode dungeon crawler from 1987. Apogee released the Turbo Pascal source under GPL in 2009. I ported the 1990 episode (Lost Adventures of Kroz) to the browser. No dependencies typescript. Some interesting tidbids I learned: The game's clock is its sound :-) Turbo Pascal's delay() blocks, and the sound effects are built out of delays, so a footstep is an 8 ms tone, 120 ms of silence, another 8 ms tone. That silence is the turn. You can't outrun Kroz by mashing keys because every move costs the length of its own beep. In the port a square-wave oscillator reproduces this (no samples etc), and playing a sound returns its duration whether or not it is audible. DOS Kroz asked at startup: "Slow or Fast PC" - and repeated sound chunks according to this. All the hidden stuff, easter eggs, and even most of bugs are reproduced. You can play it just...