Last active
June 27, 2019 08:17
-
-
Save samme/ec38e4ac7b27422d3dcbdfb559ba84a5 to your computer and use it in GitHub Desktop.
Minimal Phaser 3 setup
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
new Phaser.Game(/* ... */); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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 file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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