Live data from Hacker News

14kb WASM game written in D

skoppe.github.io

1–10 of 115 posts

Re: 14kb WASM game written in D

#2
Wow, what an impressive game for the web browser, and in such a small size!

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.

Re: 14kb WASM game written in D

#5
This uses webgl, right? Maybe feedback to the user in case of missing support would be useful.

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..."

Re: 14kb WASM game written in D

#8
post #5

This uses webgl, right? Maybe feedback to the user in case of missing support would be useful. 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..."

Yeah I first tried this in Safari and just had a black screen - edge/chrome worked just fine. Notice/pop-up would be helpful

Re: 14kb WASM game written in D

#10
Pretty impressive performance. It seems web assembly is pretty good tech for writing a performant web app. Is there any benchmark comparing web assembly vs javascript? I mean the same logic executed by javascript code vs the web assembly.

Also curious to know if there are any serious web apps developed using web assembly.

Post reply on HN