Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

D°°M in HTML5 - source code

Name: Anonymous 2012-02-23 22:32

Enjoy
http://tinyurl.com/DooM-html5-src



Details for the Doom on the Web demo

Usage

The demo works well on Firefox and Safari. Works, but slowly, on Opera. Extremely slow on Chrome due to V8 issue 947.
Use the normal Doom keyboard controls: For the menu, arrow keys and enter; for the game, arrow keys, control, space and alt (hold to strafe).
Use your browser's zoom to adjust the screen size (usually control + and control -).
Loading and saving games do work, but only until you leave the page. TODO: Use IndexedDB for persistent storage.
Technical details

The Doom source code was compiled from C to JavaScript using Emscripten and Clang. Optimized using the Closure Compiler.
Doom renders and handles input using the SDL API, which Emscripten implements in JavaScript.
Video output is done by an HTML canvas element.
Typed arrays are used for additional speed, if available in your browser.
Uses only well-accepted web standards. The only exception is audio which is done using the Mozilla Audio Data API, as sadly there is no universal standard for a simple, usable audio API yet. (The demo will still run if the Audo Data API is not present, just without sound.)
Additional notes

Thank you to id Software for releasing the Doom source code under the GPL! Please go to their website and buy their stuff :)
Complete source code for this demo is here.
Back to the demo

Name: Anonymous 2012-02-24 11:04


=================     ===============     ===============   ========  ========
\\ . . . . . . .\\   //. . . . . . .\\   //. . . . . . .\\  \\. . .\\// . . //
||. . ._____. . .|| ||. . ._____. . .|| ||. . ._____. . .|| || . . .\/ . . .||
|| . .||   ||. . || || . .||   ||. . || || . .||   ||. . || ||. . . . . . . ||
||. . ||   || . .|| ||. . ||   || . .|| ||. . ||   || . .|| || . | . . . . .||
|| . .||   ||. _-|| ||-_ .||   ||. . || || . .||   ||. _-|| ||-_.|\ . . . . ||
||. . ||   ||-'  || ||  `-||   || . .|| ||. . ||   ||-'  || ||  `|\_ . .|. .||
|| . _||   ||    || ||    ||   ||_ . || || . _||   ||    || ||   |\ `-_/| . ||
||_-' ||  .|/    || ||    \|.  || `-_|| ||_-' ||  .|/    || ||   | \  / |-_.||
||    ||_-'      || ||      `-_||    || ||    ||_-'      || ||   | \  / |  `||
||    `'         || ||         `'    || ||    `'         || ||   | \  / |   ||
||            .===' `===.         .==='.`===.         .===' /==. |  \/  |   ||
||         .=='   \_|-_ `===. .==='   _|_   `===. .===' _-|/   `==  \/  |   ||
||      .=='    _-'    `-_  `='    _-'   `-_    `='  _-'   `-_  /|  \/  |   ||
||   .=='    _-'          `-__\._-'         `-_./__-'         `' |. /|  |   ||
||.=='    _-'                                                     `' |  /==.||
=='    _-'                                                            \/   `==
\   _-'                                                                `-_   /
 `''                                                                      ``'

Name: Anonymous 2012-03-21 21:52

bump for satan's sake

Name: Anonymous 2012-03-21 22:03

>tar

the fuck is this neckbeard ancient cryptic tarball shit?

Name: Anonymous 2012-03-22 0:46

Yeah, I'll stick to my own port, thanks.

Name: Anonymous 2012-03-22 0:48

sadly there is no universal [web] standard for a simple, usable
audio API yet.

Good. Anyone who makes interactive html documents unironically is no longer a person, and they should just kill themselves.

Name: Anonymous 2012-03-22 4:46

WHAT THE FUCK
I would expect lack of root directory in the archive from a winzip-using fucktard.  IT SPILLED SHIT ALL OVER MY ~/Downloads.  FUCK

Name: Anonymous 2012-03-22 5:49

>>7
Yeah I hate that shit.  I'm planning to write a script that checks an archive and makes a dir

You can try deleting them by listing the archive and piping to xargs rm

Name: Anonymous 2012-03-22 5:53

>>7
hahahaha

Name: Anonymous 2012-03-22 5:54

>>7
Serves you right fag.

Name: Anonymous 2012-03-22 7:33

Compiled from C to Javascript

Name: Anonymous 2012-03-22 7:43

Who saw HTML5, then tried to autocorrect it to DOM?

Name: Anonymous 2012-03-22 8:01

<MIDI版>
FM版に比べ、かなり派手になってま
す。でも、この曲は幻想的なほうが、ゲー
ムの流れとしてはいいんですが・・・
ドラムパターンにHandCrapを入
れるのは好きです。はい。

Name: Anonymous 2012-03-22 9:39

BANG BANG BANG BANG

Name: Anonymous 2012-08-28 2:20

pew pew pew

Name: Anonymous 2012-08-28 2:24

Name: Anonymous 2012-08-28 7:25

HAIL SATAN
/me listens to e1m1 theme on full volume

Name: Anonymous 2012-08-28 15:27

does it support multiplayer?

Name: Anonymous 2012-08-28 21:24

Doom = boring.
This Emscripten thing, on the other hand...

Name: Anonymous 2013-03-06 15:53


=================     ===============     ===============   ========  ========
 \\ . . . . . . .\\   //. . . . . . .\\   //. . . . . . .\\  \\. . .\\// . . //
 ||. . ._____. . .|| ||. . ._____. . .|| ||. . ._____. . .|| || . . .\/ . . .||
 || . .||   ||. . || || . .||   ||. . || || . .||   ||. . || ||. . . . . . . ||
 ||. . ||   || . .|| ||. . ||   || . .|| ||. . ||   || . .|| || . | . . . . .||
 || . .||   ||. _-|| ||-_ .||   ||. . || || . .||   ||. _-|| ||-_.|\ . . . . ||
 ||. . ||   ||-'  || ||  `-||   || . .|| ||. . ||   ||-'  || ||  `|\_ . .|. .||
 || . _||   ||    || ||    ||   ||_ . || || . _||   ||    || ||   |\ `-_/| . ||
 ||_-' ||  .|/    || ||    \|.  || `-_|| ||_-' ||  .|/    || ||   | \  / |-_.||
 ||    ||_-'      || ||      `-_||    || ||    ||_-'      || ||   | \  / |  `||
 ||    `'         || ||         `'    || ||    `'         || ||   | \  / |   ||
 ||            .===' `===.         .==='.`===.         .===' /==. |  \/  |   ||
 ||         .=='   \_|-_ `===. .==='   _|_   `===. .===' _-|/   `==  \/  |   ||
 ||      .=='    _-'    `-_  `='    _-'   `-_    `='  _-'   `-_  /|  \/  |   ||
 ||   .=='    _-'          `-__\._-'         `-_./__-'         `' |. /|  |   ||
 ||.=='    _-'                                                     `' |  /==.||
 =='    _-'                                                            \/   `==
 \   _-'                                                                `-_   /
  `''                                                                      ``'

>>19
Fuck off, DººM is NOT boring.

Name: Anonymous 2013-03-06 16:17

>>20
Usual Doom 3 is boring half-life wannabe crap. Brutal Doom is awesome: http://www.youtube.com/watch?v=BTWP3wvAUuQ

Name: Anonymous 2013-03-06 18:35

teh penguin of doom xD

Name: Anonymous 2013-03-06 19:25

>>21
That's awesome, dood!

Name: Anonymous 2013-03-06 19:33

>>23
goddamn stop being so fucking depressing and sarcastic you suicidal LITTLE GIRL

Name: Anonymous 2013-03-06 21:33

>>8
I'm planning to write a script that checks an archive and makes a dir
I once found a nice Perl wrapper that did this while providing a unified CLI for zip, tar, cpio, etc. Can't seem to find it anymore, sadly.

Name: >>25 2013-03-06 21:37

>>7
And let me guess, is every file in the archive mode 777? I find that's a great shibboleth for distinguishing real Unix developers from those that do half ass ports in hopes of making a quick buck.

Name: Anonymous 2013-03-06 23:08

>>25
a good file manager allows you to browse archives to check them before extracting

Name: >>25 2013-03-06 23:23

>>27
You can tar -tf or unzip -l, too. The point of having a good wrapper is not having to do that extra step.

Don't change these.
Name: Email:
Entire Thread Thread List