A touchscreen app demo by Toby Harris. The generic bones of some commercial work, tidied up and with a own-brand look. Replace the placeholder ‘adventure’ in content.js
. Adapt the look or functionality as you like, or better still commission me for lots more whizz-bangery.
Runs in a browser. Created with PixyJS v5, written in ES2018.
- Needs to be served from localhost
e.g.
Brackets
editor app, with live preview in Chrome or Safari - Chrome
- Has a SVG
drawImage
bug, which can lead to clipped artwork (possibly caused by non-native monitor resolution on OS X) - For media playback, Chrome should have following flags set
chrome://flags
→#autoplay-policy
→No user gesture is required
- For video with alpha channel playback, Chrome with WebM tested to work
chrome://flags
→#autoplay-policy
→No user gesture is required
- Something not right? Do a Chrome full reload
Command-Shift-R
- Has a SVG
- Safari
- On my laptop, app feels slightly smoother
- Video untested
- Bundled PIXI is a fork of 5.0.4, to allow rasterising SVG assets at a fixed size
- Install Python3 from python.org if not installed (e.g.
which python3
) - Install Google Chrome if not installed (or choose another browser and alter
RUNME
script) - Set
RUNME.bash
to open inTerminal
(OS X), or... - Double-click
RUNME.bash
(OS X), or...