Top Banner
Building HTML5 games for Windows 8 Dave Voyles Tech Evangelist @DaveVoyles
23

Building HTML5 games for windows 8

Jan 15, 2015

Download

Dave Voyles

 
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Building HTML5 games for windows 8

Building HTML5 games for Windows 8Dave VoylesTech Evangelist@DaveVoyles

Page 2: Building HTML5 games for windows 8
Page 3: Building HTML5 games for windows 8

JavaScript support in Visual Studio 12/13• Templates• Intellisense• Browser Link • Great debugging

tools• HTML5 debug

tools for Win8 are missing

Page 4: Building HTML5 games for windows 8

Win.JS• Provides a set of new

controls designed for Windows Store apps using JavaScript

• Library of CSS and JavaScript files 

• Includes objects that help you handle activation, access storage, and define your own classes and namespaces

Page 5: Building HTML5 games for windows 8

Getting Started

Page 6: Building HTML5 games for windows 8

Create a new, blank, WinJS project

Source: Jesse Freeman

Page 7: Building HTML5 games for windows 8

Manually add your files to the project

Source: Jesse Freeman

Page 8: Building HTML5 games for windows 8

Further Reading: Jesse Freeman’s blog

Source: Jesse Freeman

Page 9: Building HTML5 games for windows 8

JavaScript is slow.

Page 10: Building HTML5 games for windows 8

Or is it……?

Page 11: Building HTML5 games for windows 8

In comes Emscripten &Asm.js

Page 12: Building HTML5 games for windows 8

How Emscripten worksEmscripten is an LLVM to JavaScript compiler.

It takes LLVM bytecode (e.g. generated from C/C++ using Clang, or from another language) and compiles that into JavaScript, which can be run on the Web.

Page 13: Building HTML5 games for windows 8

How asm.js worksAsm.js comes from a new category of JavaScript application: C/C++ applications that’ve been compiled into JavaScript.

It’s a whole new genre of JavaScript application that’s been spawned by Mozilla’s Emscripten project.

Page 14: Building HTML5 games for windows 8

Case Study

Epic Citadel

Page 15: Building HTML5 games for windows 8

HTML5 game frameworks

Page 16: Building HTML5 games for windows 8

Turbulenz

Page 17: Building HTML5 games for windows 8

• Open source• 2D or 3D games• “The JavaScript syntax

resembles C, but the language has more in common with functional languages like Lisp; it has closures and first-class functions.”

Turbulenz

Page 19: Building HTML5 games for windows 8
Page 20: Building HTML5 games for windows 8

Impact.js

Page 21: Building HTML5 games for windows 8

Impact.js• $100• Debugging tools

built in• Level editor• Tons of plugins• Active community• Win8 ,iOS, Android,

Wii-U, etc.

Page 22: Building HTML5 games for windows 8

Case Study

Super Rawr-Type