Skip to Content
Building HTML5 Games with ImpactJS
book

Building HTML5 Games with ImpactJS

by Jesse Freeman
February 2012
Beginner to intermediate
140 pages
3h 16m
English
O'Reilly Media, Inc.
Content preview from Building HTML5 Games with ImpactJS

Chapter 9. Publishing to Windows 8

In the previous chapter I discussed some standard ways to publish an Impact game, such as to the Web and even iOS. In this chapter I want to talk about how to get your Impact game to run on Windows 8. Windows 8 is a brand new version of Windows geared towards tablets and traditional desktops/laptops. One of the key benefits of making games on Windows 8 is the ability to take advantage of HTML and JavaScript. Not only that, but Windows 8 JavaScript games run at almost native speeds. In this chapter we’ll go through how to port Resident Raver over to Windows 8.

Getting Started

Let’s look at how to take our existing game and get it up and running on Windows 8. Before we do that, you are going to need the following things:

  • A copy of Windows 8 installed on your computer.

  • Visual Studio – You can use either the free copy of Visual Studio Express or one of the paid versions, such as Visual Studio Pro, Ultimate, etc.

  • A touch screen – This is not necessary but helpful for testing.

After you have Visual Studio installed and all of the source code from the book ready, you will need to create a new project.

Creating a new project in Visual Studio
Figure 9-1. Creating a new project in Visual Studio

Once you have the new project set up, copy over lib, media, index.html and weltmeister.html to the VS project folder. We actually don’t need the tools directory since we will not be “baking” the game when we publish ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

HTML5 Game Development Insights

HTML5 Game Development Insights

Colt McAnlis, Petter Lubbers, Brandon Jones, Duncan Tebbs, Andrzej Manzur, Sean Bennett, Florian d'Erfurth, Bruno Garcia, Shun Lin, Ivan Popelyshev, Jason Gauci, Jon Howard, Ian Ballantyne, Jesse Freeman, Takuo Kihira, Tyler Smith, Don Olmstead, John McCutchan, Chad Austin, Andres Pagella

Publisher Resources

ISBN: 9781449331207Errata