Skip to content

Comment on How to Move Doom Characters in WebGL in 50 lines of JSparent

Comments

If you want something that will really blow your mind, check out the webgl demo of Cube 2: Sauerbraten (a Quake clone).

It's by far the most advanced WebGL FPS shooter I've seen so far - http://www.webgl.com/2012/05/webgl-game-cube-2-sauerbraten/

Mind blown. It's time to learn how to use WebGL.

Except it was written in C++ then converted to Javascript/WebGL.

The mere fact that even that is possible is pretty mind-blowing.

Agreed.

The math for calculating the mouse pointer position seems off, even in full screen mode.

I think the engine multiplies mouse movement by some factor, so the OS cursor diverges from the game cursor. But in fullscreen+mouselock mode it should work fine, not sure why not in that link, but here is a link to another wip port of the same game engine to JS/WebGL,

http://syntensity.com/static/bb/client.html

In fullscreen mode the mouse cursor works ok (at least in browsers that support mouselock).

Words cannot describe how epic that is

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.