You Can Now Play Quake II with HTML5

Disclosure: We are a professional review site that receives compensation from the companies whose products we review. We test each product thoroughly and give high marks to only the very best. We are independently owned and the opinions expressed here are our own.

9 Flares Filament.io 9 Flares ×

Yesterday Google released a video of their engineers playing Quake II using Safari without using plugins. The Engineers used some of their 20% time to test the limits of HTML5. Their results were an HTML5 port of Id’s Quake II game engine! Normally I would not do a post on video games, but this game is programmed and setup to run via a web browser using HTML5. Run Quake II as the Google Guys set it up shows the potential of HTML5 and the future of web design.  Running Quake II  with HTML5 will only run on “modern browsers” such as Safari and Google Chrome.

Quake II Running On Safari Without Plugins

So How They Do It?

They started with Jake2, a Java 3D game engine that is a port of GPL’D Quake2 game engine from ID software. They also used the Google Web Toolkit, WebGL, WebSockets, the Canvas API, HTML 5 <audio> elements, and local storage API to cross-compile it into Javascript. The results can be seen in the video above. They reached 30 to 60 frames per second on laptops! This may very depending on your hardware and internet connection.

How to Compile Your Own Version of Quake II for HTML5

In order to make Jake2 work, you will have to (source: quake2-gwt-port):

  • Created a new WebGL based renderer
  • Ported the network layer for multiplayer games from UDP to WebSockets
  • Made all resource loading calls asynchronous
  • Created a GWT implementation of Java nio buffers based on WebGL arrays (to be ported to ECMAScript Typed Arrays)
  • Implemented a simple file system emulation for saving games and preferences using the Web Storage API

Google Engineer have mostly used Linux and Mac to run and build the code.  There are six steps to follow.

  1. Install ogg vorbis and lame by running sudo apt-get install vorbis-tools and sudo apt-get install lame on linux. On a Mac, install MacPorts and then run sudo port install vorbis-tools and sudo port install lame. The tools are needed to convert the Quake II resources for the Web.
  2. Check out the code and change into the project directory (cd quake2-gwt-port).
  3. ./build-dedicated-server (will build the tools and the client and server code).
  4. ./install-resources (will download, unpack, and convert the original Quake II demo resources). Due to a glitch in our maven build files, you currently also need cp -r maven-build/server/target/gwtquake/war/gwtquake war. We are fixing this.
  5. ./run-dedicated-server [port] (will run the local Quake II server).
  6. Navigate to: http://localhost:8080/GwtQuake.html (or whatever port you specified to the server).

Final thoughts

After watching the video, I believe the game play was not as good as running the original, but it still looks good for what it is and the technology being used. As HTML5 evolves so will the quality of the work created.

What are your thoughts?

EvolutionaryDesigns.net runs on the Genesis Framework

Genesis Framework

Genesis empowers you to quickly and easily build incredible websites with WordPress. Whether you're a novice or advanced developer, Genesis provides the secure and search-engine-optimized foundation that takes WordPress to places you never thought it could go. It's that simple - start using Genesis now!


Take advantage of the 6 default layout options, comprehensive SEO settings, rock-solid security, flexible theme options, cool custom widgets, custom design hooks, and a huge selection of child themes ("skins") that make your site look the way you want it to. With automatic theme updates and world-class support included, Genesis is the smart choice for your WordPress website or blog.

About James

James spends most of his free time using social media and loves to teach others about design, web development, CSS, SEO, and social media. He is addicted to Wordpress, social media, and technology. You can reach him on his, personal website, Do not forget to follow him on Twitter @element321

Comments

  1. This is so unbelievable! I think the browser is really going to be the full replacement of all applications and it’s heading towards Google’s philosophy of Google Chrome OS… It’s definitely going to be that one browser which can open all kinds of applications by going to the desired URLs….

Trackbacks

  1. Element321 says:

    New Blog Post: You Can Now Play Quake II with HTML5 | Evolutionary Designs http://bit.ly/aUIeN6 #google #HTML5

  2. Play Quake II With Google Chrome and HTML5 No Plugins Required…

    Google Engineers created a way play Quake II using the Safari or Chrome Browser without using plugins. Watch the video and learn how they did it….

  3. Story added…

    Your story was featured in Featured in MMO Social Network! Here is the link to vote it up and promote it: http://www.mmosocialnetwork.com/WebDesign/Use_HTML5_and_Google_Chrome_to_Play_Quake_II

  4. Using HTML5 and Google Chrome You can Play Quake 2 without any plugins…

    Google Engineers spent some of their free time testing the limits of HTML5. Their results were that they could play Quake 2 using Google Chrome or Safari without plugins. Watch the video and learn how they did it….

  5. You Can Now Play Quake II with HTML5 and Safari Without Plugins…

    Yesterday Google released a video of their engineers playing quake using the Safari Browser without using plugins. Will this be future of HMTL5 or will this be just for fun? Watch the video and learn how they did t….

  6. Use Google Chrome and HTML5 to Play Quake 2 Without Plugins – http://bit.ly/9xbvfK | #html

  7. Unbelievable > @csscomposer: Use Google Chrome and HTML5 to Play Quake 2 Without Plugins – http://bit.ly/9xbvfK | #html

  8. Unbelievable > @csscomposer: Use Google Chrome and HTML5 to Play Quake 2 Without Plugins – http://bit.ly/9xbvfK | #html

  9. Element321 says:

    RT @DesignGizer You Can Now Play Quake II with HTML5 | Evolutionary Designs http://bit.ly/cIKT1n

  10. Social comments and analytics for this post…

    This post was mentioned on Twitter by Element321: New Blog Post: You Can Now Play Quake II with HTML5 | Evolutionary Designs http://bit.ly/aUIeN6 #google #HTML5…

  11. whoa || You Can Now Play Quake II with HTML5 – http://bit.ly/aUIeN6 (via @element321)

  12. DesignGizer says:

    RT @element321: You Can Now Play Quake II with HTML5 http://bit.ly/bxbj42

  13. RT @element321: You Can Now Play Quake II with HTML5 http://bit.ly/bxbj42

  14. Quake 2 in Google Chrome spielen. So gehts http://bit.ly/8X1nAN

  15. Quake 2 in Google Chrome spielen. So gehts http://bit.ly/8X1nAN

  16. Quake 2 in Google Chrome spielen. So gehts http://bit.ly/8X1nAN

  17. Quake 2 in Google Chrome spielen. So gehts http://bit.ly/8X1nAN

  18. Quake 2 in Google Chrome spielen. So gehts http://bit.ly/8X1nAN

  19. Quake 2 in Google Chrome spielen. So gehts http://bit.ly/8X1nAN

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

9 Flares Twitter 0 Facebook 9 Buffer 0 Email -- Filament.io 9 Flares ×
%d bloggers like this: