Skip to content

Instantly share code, notes, and snippets.

@topherPedersen
Created October 9, 2019 22:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save topherPedersen/9b1a29fadb3cae003a145f2fd6cfa12b to your computer and use it in GitHub Desktop.
Save topherPedersen/9b1a29fadb3cae003a145f2fd6cfa12b to your computer and use it in GitHub Desktop.
Phaser 3 Starter Template (game.js)
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