News for hackers. Stuff that matters.
Re:HTML5/WebGL source port of Quake by zanny on Saturday February 16, 2013 @12:10PM (#5232126)
So you can write on the checklist of things html5.5 or 6 or whatever needs:

* Local config storage (doable in cookies or localstorage)

* Local save storage (probably too big to fit in 5MB of localstorage)

* Mouselook (mouse buttons work fine). I think you can already do this though, I know you can at least track cursor position and you can implement mouselook off that.

* Mousewheel in firefox, at least, wasn't rebindable.

* I see problems in fullscreen browser games that take every single browser button and override it, so you would probably want a "you can't rebind this key" key. If there isn't already one.

Re:HTML5/WebGL source port of Quake by snprbob86 on Saturday February 16, 2013 @04:42PM (#5233143)
MouseloOk != MouseloCk

Tracking view position from mouse coordinates has always been possible, but handling mouse focus and coordinate wrapping is necessary for games with mouse look. The really tricky bit is that there are security implications in much the same way as full screen mode.

See here for details on Pointer Lock: http://www.chromium.org/developers/design-documents/mouse-lo...

Re:HTML5/WebGL source port of Quake by SiPlus on Saturday February 16, 2013 @04:18PM (#5233075)
Configs, saves and demos are already stored in localStorage.
Re:HTML5/WebGL source port of Quake by jamescun on Saturday February 16, 2013 @09:52AM (#5231621)
If we are able to play games which required a fairly decent PC 15 years ago in a web browser today, imagine where we will be in another 15 years time.
Re:HTML5/WebGL source port of Quake by Mahn on Saturday February 16, 2013 @10:00AM (#5231636)
It's a start. Browsers were not getting any faster before because no one was pushing their boundaries, but nowadays it's a different story. I think we can expect browsers to get a helluva lot faster within the next 3-4 years, specially when it comes to canvas processing and rendering.
Re:HTML5/WebGL source port of Quake by MatthewPhillips on Saturday February 16, 2013 @02:19PM (#5232617)
15 years ago you needed a fairly decent DOS PC. This works on every major OS out of the gate.
Re:HTML5/WebGL source port of Quake by kayoone on Saturday February 16, 2013 @03:07PM (#5232791)
... if you have a fairly decent browser installed
Re:HTML5/WebGL source port of Quake by skatepark on Saturday February 16, 2013 @01:18PM (#5232384)
> ... imagine where we will be in another 15 years time.

We'll be 15 years behind the PCs of 15 years from now[1].

[1] Unless something changes drastically in the web stack.

Re:HTML5/WebGL source port of Quake by mathgladiator on Saturday February 16, 2013 @04:54PM (#5233172)
But, does that matter?

Do we need all the power a PC provides natively to make great games?

Re:HTML5/WebGL source port of Quake by skatepark on Saturday February 16, 2013 @05:04PM (#5233211)
> Do we need all the power a PC provides natively to make great games?

I think the market has declared this to be a definitive "yes". Users don't want to waste their hardware dollars so that you can spend them on inefficient solutions.

When your competition takes advantage of the hardware, and you don't, then your application (or game) falls behind in the marketplace.

There's the argument that users are willing to have lesser performance ... for lesser cost. This is true, but quite different from your code performing more poorly than your competition's on the same hardware.

Re:HTML5/WebGL source port of Quake by TheZenPsycho on Monday February 18, 2013 @12:30PM (#5239381)
the function of computing power -> game quality is logarithmic, not linear. The 15 years behind of 15 years from now is a considerably smaller gap than the 15 years behind of now.
Re:HTML5/WebGL source port of Quake by tterrace on Saturday February 16, 2013 @11:32AM (#5231963)
This one is crashing osx for me, but the GWT team did a similar JS port for quake 2 back in 2010, playable here: http://crystalin.dyndns.org:8080/GwtQuake.html .
Re:HTML5/WebGL source port of Quake by anon1385 on Saturday February 16, 2013 @12:01PM (#5232093)
Crashing your browser (which browser?) or actually crashing the entire OS. Both are worrying from a security perspective, but the latter is very worrying.
Re:HTML5/WebGL source port of Quake by tterrace on Saturday February 16, 2013 @01:41PM (#5232459)
Oops, I meant to say crashing on osx, the browser is chrome 24
Re:HTML5/WebGL source port of Quake by tterrace on Saturday February 16, 2013 @01:56PM (#5232522)
To update, it looks like both the gwt quake to and the OP's quake crash safari and chrome on osx, but work great in firefox. The quake 1 demo actually runs noticeably quicker than the gwt one for me. This is a great showcase for what's possible for js games.
Re:HTML5/WebGL source port of Quake by wowtip on Saturday February 16, 2013 @09:14AM (#5231515)
That worked very well. With mouse support it would be great.

Also, quite scary how well you remember the maps, 15 years later.

Re:HTML5/WebGL source port of Quake by BHSPitMonkey on Saturday February 16, 2013 @02:25PM (#5232634)
I've always thought about how well we learn lore and geography inside games we love (for example, I know where everything is within several different lands of Hyrule), and yet it's very hard to get students to really learn actual Earth geography. Perhaps some aspects of this kind of teaching should move into a gaming environment in schools.
Re:HTML5/WebGL source port of Quake by cocoflunchy on Saturday February 16, 2013 @08:18AM (#5231376)
Playable version here : http://www.quaddicted.com/stuff/WebQuake/Client/WebQuake.htm

Although the controls are really weird, right click goes forward, I can't aim with the mouse...

Re:HTML5/WebGL source port of Quake by pygy_ on Saturday February 16, 2013 @08:26AM (#5231399)
These are IIRC the original controls. You could enable mouselook by using the console, but it is not implemented in this port.
Re:HTML5/WebGL source port of Quake by Sprint on Saturday February 16, 2013 @08:37AM (#5231424)
The port intentionally does not support mouse control because that is full of vendor-prefixes. See the bottom of the page.
Re:HTML5/WebGL source port of Quake by xuhu on Saturday February 16, 2013 @09:05AM (#5231492)
I still don't understand his logic for this: Element fullscreen is not going to be added because there's already browser-wide F11 fullscreen.

If pointer-lock only works in element-fullscreen in Firefox (on which he develops) then what other choice is there ? Nobody plays shooters with the keyboard since wolf3d, and the BananaBread demo does pointer-lock precisely via element-fullscreen.

Re:HTML5/WebGL source port of Quake by SiPlus on Saturday February 16, 2013 @04:28PM (#5233107)
Chrome supports mouse lock without fullscreen since v21. However, I get illegal invocation error.
Re:HTML5/WebGL source port of Quake by SiPlus on Wednesday February 20, 2013 @07:19AM (#5250013)
I added mouse support for Chrome.
Re:HTML5/WebGL source port of Quake by 0x0 on Saturday February 16, 2013 @08:35AM (#5231419)
It's "Aw, snap!"'ing my chrome 24 on osx 10.8 :(
Re:HTML5/WebGL source port of Quake by adam-f on Saturday February 16, 2013 @11:09AM (#5231862)
Working great on a macbook-pro with Windows 8. :-P
Re:HTML5/WebGL source port of Quake by sylvinus on Saturday February 16, 2013 @10:38AM (#5231749)
Same for me.
Re:HTML5/WebGL source port of Quake by kvprashant on Saturday February 16, 2013 @08:21AM (#5231385)
"and don't kill the server please?" if only ppl were that nice. Quaddicted will be quaked soon!
Re:HTML5/WebGL source port of Quake by Sprint on Saturday February 16, 2013 @08:38AM (#5231431)
Quaddicted.com admin here. Should be fine since it is just static content. You might saturate the 100mbit/s but the server itself should be fine.
Re:HTML5/WebGL source port of Quake by shocks on Saturday February 16, 2013 @09:37AM (#5231585)
Challenged accepted!

Just kidding. :)

Re:HTML5/WebGL source port of Quake by kvprashant on Tuesday February 19, 2013 @02:50AM (#5243179)
Nice! awesome work Sprint :)
Re:HTML5/WebGL source port of Quake by izuzak on Saturday February 16, 2013 @10:56AM (#5231808)
Best. Thing. Ever.

Running smooth in Chrome Canary.

Re:HTML5/WebGL source port of Quake by zerooneinfinity on Saturday February 16, 2013 @01:17PM (#5232383)
Really impressive. What are peoples thoughts on games moving more and more to browsers?
Re:HTML5/WebGL source port of Quake by mathgladiator on Saturday February 16, 2013 @04:53PM (#5233169)
I think it's an interesting question of time. Quake I came out june 1996; so, html5 is almost* capable of doing a 16 year old game. This... is interesting from a data point perspective.

There is an open question as to how html5 now compares to native some years ago since that's how (for gaming) it should be judged. I believe we will reach a limit point and in the long term, maybe the browser-related inefficiencies will just be marginal to the end user experience.

* mouse look is really what is missing.

Re:HTML5/WebGL source port of Quake by MatthewPhillips on Saturday February 16, 2013 @01:58PM (#5232530)
The programmer behind this is 17 years old. Hand ported as well, not emscripten.
Re:HTML5/WebGL source port of Quake by SiPlus on Saturday February 16, 2013 @04:16PM (#5233063)
15 *

16 on March 15

Re:HTML5/WebGL source port of Quake by camus on Saturday February 16, 2013 @02:36PM (#5232682)
great , did not work on my machine though , but great project.
Re:HTML5/WebGL source port of Quake by patman81 on Saturday February 16, 2013 @08:31AM (#5231410)
Wow, audio is a bit slow for me in Safari but great tech demo. I still love that game!
Re:HTML5/WebGL source port of Quake by stared on Saturday February 16, 2013 @04:12PM (#5233053)
On Mac OS X on Chrome it does not work, on Firefox it works but blinks...
Re:HTML5/WebGL source port of Quake by SiPlus on Saturday February 16, 2013 @04:21PM (#5233087)
In Chrome on Mac and Linux, sound crashes the tab often. Play with ?-nosound or on Windows. The loading image is also not displayed in Chrome (unlike Firefox).
Re:HTML5/WebGL source port of Quake by dtwhitney on Saturday February 16, 2013 @10:37AM (#5231741)
Anybody getting mouse support working?
Re:HTML5/WebGL source port of Quake by SiPlus on Wednesday February 20, 2013 @07:18AM (#5250009)
I added it today only for Chrome.
Re:HTML5/WebGL source port of Quake by gren on Saturday February 16, 2013 @11:28AM (#5231937)
awesome work.

Running smoothly on Linux, tested on Firefox and Chrome.

Re:HTML5/WebGL source port of Quake by jebblue on Saturday February 16, 2013 @01:53PM (#5232509)
Yup, runs good on Ubuntu, used Chrome. Pretty cool stuff.
Re:HTML5/WebGL source port of Quake by brain50 on Saturday February 16, 2013 @10:08AM (#5231653)
very slow in rendering
Re:HTML5/WebGL source port of Quake by iapi on Saturday February 16, 2013 @10:57AM (#5231812)
works fine for me which browser are you using ?
Re:HTML5/WebGL source port of Quake by brain50 on Saturday February 16, 2013 @11:04AM (#5231847)
am using firefox
Re:HTML5/WebGL source port of Quake by hawkw on Saturday February 16, 2013 @12:31PM (#5232212)
There's your problem!
Re:HTML5/WebGL source port of Quake by sin45 on Saturday February 16, 2013 @10:28AM (#5231719)
amazing work