329 points · by Shadonototra · 5y ago · 107 comments
I'm particularly impressed by the variable lighting of the bullets down hallways, that's really quite masterful work.
Kudos!
Edit: I am impressed because I'm impressed. I spent a few weekends recently messing around with pygame, and I had a really hard time organizing my code and my thoughts. I do primarily numerical, technical work, and I see that there is something challenging about writing a game that I haven't come across much in 25+ years.
Feel free to shit on my comment, but I still think it's a very cool project, and seeing it run so smooth in a web browser, in a vm, on a beat up box with a Celeron was surreal to me.
Many of us could code something like this technically but it would play horribly and look worse - and would be more than 14kb of WASM
It is the little things, the lighting, the little sound effects, even the unlimited ammo
(It was a js13kgames submission in 2018; I’m guessing that this being submitted here now is in some way linked to how Q1K3 is currently on the homepage, also a js13kgames submission, though for 2021. Pure speculation.)
Source code: https://github.com/phoboslab/underrun
The original js13k game implemented a small sonant-x player for the audio, both sound fx and music.
-- [0] - https://github.com/skoppe/spasm/tree/master/docs/examples/un...
• There’s an & that should be either & or &, depending on whether it’s setting HTML or text.
• The opening garbage text is mojibaked, so that it looks like… different, not as æsthetically pleasing garbage.
• The text that’s supposed to be like “7 SYSTEM(S) STILL OFFLINE” is getting mangled badly, missing much of the string and getting a bunch of U+0000s in it—unchecked and incorrect string indexing, by the looks of it. Hmm… “1␀␀␀␀␀␀␀␀␀␀STIL1␀␀␀␀␀␀␀” actually looks like something’s clobbering the string literal stillOffline. Ouch; that actually worries me, though I hope it’s largely just a side-effect of some shortcuts taken to keep the code tiny and not something that would normally be an issue?
• terminal_text_outro has some double quotes that should be single quotes (apostrophes).
Other than that, seems to be working well.
I was confused for a second why this game made its way to HN again (there's a making of for the game itself from 2018[2]). This seems to be a port of the game to D[3] as a demo for a WASM runtime, Spasm, which is also written in D[4].
[1] https://phoboslab.org/underrun/
[2] https://news.ycombinator.com/item?id=18031024
[3] https://github.com/skoppe/spasm/tree/master/examples/underru...
Else folks get stuck at "Initializing..." with an exception in the console. Not everybody checks the console.
(TypeError: can't access property "createBuffer")
Edit: stuck at "Initiating..."
Also curious to know if there are any serious web apps developed using web assembly.
Much, much better performance than JS is possible because (among many other things) you can perform a lot of optimizations during AOT compilation due to eg. LLVM, avoid GC and arrange memory to help cache efficiency.
Re: JS call overhead, ultimately using instanced drawing so you have a constant number of draw calls even for a growing number of objects is what helps.
These results are utterly unscientific. You also can’t compare Firefox and Chrome’s profiling numbers to one another.
So yes it got me thinking the same thing.
Github stars are an extremely weak signal. Some D users have actually said to me that they feel slightly confused that their projects have more stars than the actual language implementation on github just because of hype, for example.
Maybe it could be, but our goal is not to have "niches". If anything, our niche is making people who would otherwise not be, productive enough to deliver what they want to make.
D isn't a gimmick language, it's a Programming (with a capital P!) language.
> SENT: SEP. 13, 2018 > RCVD: SEP. 13, 2718 > > THANKS FOR PLAYING > > I HAVE PREVIOUSLY BEEN A PROUD SPONSOR OF THE JS13K > COMPETITION SINCE THE VERY FIRST ONE BACK IN 2012. > HOWEVER, THIS YEAR"S COMPETITION WAS MY FIRST ONE > AS A PARTICIPANT AND IT HAS BEEN TREMENDOUS FUN! > > I WANT TO THANK MY DEAR FRIEND ANDREAS LÖSCH OF > NO-FATE.NET FOR COMPOSING SOME AWESOME MUSIC ON > SUCH SHORT NOTICE. > > FURTHER THANKS GO OUT TO THE JS13K STAFF, THE > SONANT-X DEVELOPERS AND ALL OTHER PARTICIPANTS > IN THIS YEAR"S JS13K. SEE YOU NEXT YEAR! > > DOMINIC > END OF TRANSMISSION
https://store.steampowered.com/app/234390/Teleglitch_Die_Mor...
Includes links to a couple other examples.
PhobosLab is awesome and it's great to see Dominic Szablewski pushing web-gaming forward to this day. Hope to see it continue. :)
But, I do think the future will be full of games that can be instantly played directly in the browser
Was frustrated by a similar experience with Q1K3 earlier.
but ff shows that underrun.wasm is 35KB, what's going on?