Created
October 9, 2019 22:40
-
-
Save topherPedersen/9b1a29fadb3cae003a145f2fd6cfa12b to your computer and use it in GitHub Desktop.
Phaser 3 Starter Template (game.js)
This file contains 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
var config = { | |
type: Phaser.AUTO, | |
width: 800, | |
height: 600, | |
physics: { | |
default: 'arcade', | |
arcade: { | |
gravity: { y: 200 } | |
} | |
}, | |
scene: { | |
preload: preload, | |
create: create, | |
update: update | |
} | |
}; | |
var game = new Phaser.Game(config); | |
function preload () { | |
} | |
function create () { | |
} | |
function update() { | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment