Skip to content

Instantly share code, notes, and snippets.

@samme
Last active June 27, 2019 08:17
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save samme/ec38e4ac7b27422d3dcbdfb559ba84a5 to your computer and use it in GitHub Desktop.
Save samme/ec38e4ac7b27422d3dcbdfb559ba84a5 to your computer and use it in GitHub Desktop.
Minimal Phaser 3 setup
new Phaser.Game(/* ... */);
<!DOCTYPE html>
<meta charset='utf-8'>
<title>My Game</title>
<style>
html, body { height: 100%; }
body { margin: 0; padding: 0; color: #eee; background: #111; }
</style>
<script src='phaser.js'></script>
<script src='app.js'></script>
// This would be the contents of <https://github.com/photonstorm/phaser/blob/master/dist/phaser.js>
// or, e.g., <https://github.com/photonstorm/phaser/releases/download/v3.10.1/phaser.js>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment