How to Set Up a PC for a Web Based HTML5 Exhibition Game

September 22, 2017

Filed under: Branded Games — Simon Walklate

Why HTML5 for an exhibition game?

HTML5 gives you the option of using your game across different devices at exhibitions/events. For instance you might want to use a PC with a large touch screen at one event, but scale it down to mounted iPads at another. It also gives you the added option of having a public web based version of your game, to help with your other marketing activities, with minimal changes. Conversely, if you get a web based HTML5 game produced for a marketing campaign, you can easily get some slight modifications made to use it at an exhibition.

There are a couple of different options for setting up a simple interactive kiosk to use an HTML5 game at an exhibition, trade show or event. I’m going to try and cover the other (using mounted tablets) over the coming weeks/months. For now let’s concentrate on using a PC…

What hardware will I need?

Any PC with a screen (and input devices) connected can be used to run a game on an exhibition stand. This setup also give you the greatest flexibility. You can choose the size of screen. Anything from a modest sized desktop screen right up to a giant touch screen display, the choice is yours. You also get a choice of input devices, usually a touch screen or joystick/gamepad for more arcade style games. Although mouse and/or keyboard is out, for reasons I’ll get to shortly.

Although most simple 2D games don’t need a state-of-the-art games machine to run, I’d always recommend you test and set up the game on the actual hardware you’ll be using at the exhibition well ahead of time. The last thing you want is to get there (with limited time on the morning of the first day) and set up for the first time. That’s asking for trouble. So make sure you take a bit of preparation time to do this beforehand to make sure setup is stress free on the day.

Remove physical access to hardware

The machine itself and any physical peripherals/input devices that would allow players to quit out of your game should not be accessible. Move them out of the way, lock them away, whatever you have to do. Any input devices and peripherals (anything players don’t need or shouldn’t have access to) should be disconnected where possible. If you need to connect a mouse and/or keyboard to set up your machine, only connect them when you need them and disconnect them afterwards. The only input devices accessible to the public should be the ones that the game requires (usually either a touch screen or gamepad/joystick).

It’s also worth mentioning that any gamepads or joysticks you intend to use, should have some sort of secure mount. The last thing you want is for your controller to go walkies 10 minutes into the first day.

Use a clean, dedicated machine

I’d also strongly recommend that you use a machine with a fresh, up-to-date install of Windows. Again it’s about stripping the machine down to the bare minimum that’s needed to run the game. No extra software that’s surplus to requirements should be installed on the machine.

Under no circumstances should you use a regular work machine for this. If a player does somehow manage to get out of the game and get access to Windows, you don’t want them having access to all your sensitive files.

Windows 10 is ideal, as it’s best equipped to set up and use touch screens and lock down the operating system. Once we get to the details of setting up Windows, we’ll be assuming we’re working with Windows 10.

Don’t forget power

Obviously, you need to make sure the machine you’re using has sufficient power as well. If you’re running all day, just a laptop with one battery pack isn’t going to do it. You’ll need either mains power or sufficient battery packs to last the duration.

Also, make sure any powered input devices have sufficient charge to last. If you’re using a gamepad or joystick that needs charging, make sure it’s fully charged and consider having another fully charged spare on hand just in case.

Internet connection

Usually you’ll need a live internet connection on the machine you’ll be using. Features like scoreboards, data capture forms etc. usually rely on server-side scripts and storage. So again, check in advance that you’ll get access to Wi-Fi at the exhibition, if not you’ll need to organise some other solution.

It doesn’t generally need to be particularly fast (for scoreboards and data capture we’re talking about transferring tiny amounts of data), but it does need to be there and not dropping out all the time.

Running in full screen mode

You’ll need a full screen mode button incorporating into the exhibition version of your game to enable this mode via the fullscreen API. We do this anyway in all the web based HTML5 games we create and it’s fairly easy for your developer to add one.

You’ll also need the exhibition version of your game to automatically disable any in-game buttons you don’t want players to have access to while playing in full screen mode. The most important being the full screen button (so once the game is up and running in full screen mode players can’t quit out of it). You might also want to consider disabling any settings controls, pause and mute buttons to keep the game running consistently throughout.

Stopping players accessing the operating system

We need to make sure the machine is set up properly to lock it down. Otherwise players will be able to exit out of your game into Windows to mess with things they shouldn’t. On PC this will require changing some Windows setting and utilising Google Chrome’s “Kiosk Mode”.

Again, once you’ve locked the machine down, test to make sure there are no ways to quit out of the game using any of the input devices that will be accessible to players.

Setting up Windows 10

Google Chrome Kiosk Mode

I’d recommend using Google Chrome to run your game. It provides the best support for touch screens and other input devices and avoids some quirks that make some of the other browsers less than ideal for running a game at an exhibition or event. It also provides a built in Kiosk Mode. This allows you to set up a shortcut to open your game directly in windowless browser mode.

First of all you’ll need to download and install the latest version of Chrome, if you don’t already have it.

Right click in a directory where you want to store your game shortcut and select New -> Shortcut.

Click “Browse” and find the Google Chrome program file (usually at “C:\Program Files (x86)\Google\Chrome\Application\chrome.exe”) then click “Next”.

Give the shortcut a name, then click “Finish”.

Right click the shortcut you’ve just created and select “Properties”.

Edit the “Target” field and put –kiosk followed by the web address of your game, after the last quote marks of the existing text and click “OK”. So it should read something like…

“C:\Program Files (x86)\Google\Chrome\Application\chrome.exe” — kiosk http://www.thedomain.com/the-exhibition-game-url/

Double click the shortcut icon to open Google Chrome in Kiosk Mode, automatically opening the game page, which you can then full screen (via the in-game full screen button). You’ll need to press Alt-F4 on a keyboard to quit Chrome while in Kiosk Mode, but once it’s up and running you hopefully shouldn’t need to.

Disable screen edge swipe functions

Windows 10 has built in functions that occur when you swipe at the edges of the screen (including opening Task View, dragging in the “Action Center” sidebar etc.) You need to disable these, otherwise players will be able to quit out of the game or get into PC settings.

This setting isn’t available in the standard Windows settings and requires a quick registry change. You can either (create and) set the key manually (not recommended), or download and run these handy registry files to quickly enable/disable this feature. In case you’re interested, the relevant registry key is:

[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\EdgeUI] “AllowEdgeSwipe” – set to 0.

Either way you’ll need to restart the machine for the changes to take effect and you should be able to test afterwards that the edge swipe functions no longer work.

It’s also worth mentioning that messing with the registry can do bad things to a Windows install. So don’t change anything but this one key. This is yet another reason to use a dedicated machine with a fresh Windows install and again, set this up ahead of time. You really don’t want to be making registry changes on an important work machine if you can help it.

Turn off Action Center notifications

Action Center is a new feature built into Windows 10 that allows installed software to deliver mobile-like push notifications, as well as giving easy access to certain Windows settings. This can be useful on a standard machine, but these are often clickable (taking the user into the relevant program or settings) and can be distracting. For these reasons we need to make sure we disable these notifications, to stop them popping up over our game. To do this:

Open Windows Settings, by selecting the cog icon.

Select “System”.

Select “Notifications & Actions” from the list on the left. Under the main “Notifications” heading, on the right, you’ll see a list of notification permission toggles. You need to make sure all of these are switched off. Otherwise pop-up, clickable notifications will allow players to click away from the game.

There’s also a long list of program specific notification toggles below. The top toggle we’ve just switched off (labelled “Get notifications from apps and other senders”) should have automatically disabled these (greying them out), but just double check these are all disabled as well.

Switch off sleep mode

This is worth doing to make sure the game keeps running continuously and the computer doesn’t hibernate if it’s left idling. The last thing you want is for the screen the go black every few minutes, if no one is playing in that time.

Go into Windows Settings, “System” again.

Click “Power & Sleep” on the left and switch both “Screen” and “Sleep” to “Never” via the drop-downs.

Put Windows into Tablet Mode

This is necessary to make sure the on screen keyboard appears when you select a text entry form (such as a scoreboard entry form) on a touch screen. However, even if you’re not using a touch screen it’s worth switching to tablet mode anyway because it helps with locking out access to features such as the Windows task bar when you’re running your game.

The easiest way to toggle this on/off is to open “Action Center” by clicking the square speech bubble icon in the bottom right of the Windows task bar. Then just press the “Tablet Mode” button to toggle it on/off.

You’re all set

You now have everything set up to use your game at an exhibition or event. Players should be totally locked into the game, taking up the full screen area, so you shouldn’t be able to tell it’s a web based HTML5 game either.

Get Our Newsletter

Sign up to our newsletter to get regular info and tips on using games for your business straight to your inbox:


Leave a Reply