68 comments

[ 2.7 ms ] story [ 82.1 ms ] thread
(comment deleted)
Every time I click in the window, the menu disappears. I tried both Firefox and Chrome.
Thanks for that report! It is hopefully fixed now.
Awesome! Harder to exit than vim.
In case you want to view the menu, press Tab. Click outside menu items to resume game.
Nice, but the view keeps clipping out to far ahead of the map (but the character seems to still be in its original position as I can die from monsters). It snaps back in place when I shoot.

edit: both on chromium and firefox, desktop linux.

(comment deleted)
Really cool experiment. A lot of jank. It would sometimes rubber band me back, movement was grid aligned in a way that made accessing the secret room challenging, and the whole tab unexpectedly crashed with no error. 5 star would play again
Seems like you get stuck on corners and it really doesn't like running up/down slopes, neat though.
As someone who passionately and ardiently hates prolifiration of this set of _hacks on top of hacks_ called CSS (and CSS/JS/HTML aka Web-stack), I must say this is good and valid use case for CSS. :)
how long does it take to develop this game?
Very cool. I wonder what the limitations are? I see the dog I shot is floating in the air. Is that maybe a CSS thing or is it fixable?
Damn, always gotta deal with these accursed z-index issues with CSS ;)
Wow, this will be a great project for the forever-upcoming VRML /s
Well, Quake and VRML were contemporaneous, but VRML was a plugin in the browser — it was never as fast as Quake, and not intended as a game engine, though there were many worlds and models built in VRML that were at least as detailed as the Quake maps.
Doesn't work at all for me. I keep jumping around and clipping through objects, can't even leave the first room without being stuck in the doorway to the elevator.
This is the first thing I've seen on the intertubes for a /long/ time which genuinely makes me smile, thank you op.

Checked out https://cssdoom.wtf/ and loved it too, both are far lighter than current affairs. \o/

If this is what CSS has become, it means at some point its development went the wrong way.
I wish I could use CSS this well too
Amazing and impressive use of CSS. But at the same time, makes me appreciate what feat Carmack achieved 30 years ago on early Pentiums.
Impressive. I guess this isn't only the renderer made to use CSS but also a full recreation of the engine and logic right? My guess is because a bunch of things do not behave like the original game, e.g. some buttons need to be shot instead of touched to activate, some secret doors open by touching them instead of being shot, etc.
No it’s just the renderer. The game itself is Typescript.
Hi there! Thanks for the report, buttons should work properly now.

Regarding the game logic, the build step has a small JS extractor over QuakeC/progs.dat to generate JSON source facts: states, models, attacks, sounds, etc. The browser runtime is TypeScript and consumes those for Quake-ish gameplay.

This is an awesome achievement, but I can't help but notice that Quake ran smoother on my Pentium-133 PC in the 90s than it runs on my Mac M1 Pro...
For what it's worth it works like smooth butter under Chrome on an M2, on Safari it's clunky and seems to clip alot
Zero issues on Firefox + Linux. Gnome Web is stuttery and weird, though. Must be a WebKit/Safari thing.
Quake compiled in C will run insanely fast at 8K full resolution on an M1.
Err, strange, what browser? I'm using Firefox on a ThinkPad from 2018 running Linux, and cssquake was running at a smooth 60fps just now (and at 1080p resolution vs the 320x240 or 320x200 someone would likely be running on a P133)
Runs perfectly fine at over 60fps on my Intel Core 358H at roughly 2560x1600.

Perhaps there's something wrong with your web browser. Try Firefox - it works beautifully there.

Maybe try Firefox.

Most of the time, things seem to be optimized for Chrome, but with this, I actually had the impression that Firefox ran a bit smoother, but I tested it on Linux.