Phaser webcam demo
For best results:
- Have good lighting
- Click the red button
- Right-click photos to save them
This demo was intended for desktop. Performance isn't great on mobile.
Copyright © 2015 John Watson. Licensed under MIT license.
The build process creates the the texture atlas from the png images in the gfx folder and ogg and mp3 files from the wavs in the sfx folder. But you can also just run
grunt atlas to regenerate the texture atlases and run the game directly from the game directory with
I've only tested the build on my Ubuntu 14.10 desktop. It may not work other places. In particular, it has a dependency on
avconv for building the mp3 and ogg files.
Requires node and grunt.
- Install dependencies:
Clean the build with
Build the texture atlases with
Build the sound effects with
Run a minimal web server to launch the game with
grunt run. This will also enable a watch and automatically rebuild the atlas or sounds if the sources change.