From 07d114a2acb59f828a715371a578fc512712fd82 Mon Sep 17 00:00:00 2001 From: Erin Borders Date: Mon, 24 Jun 2019 19:10:26 -0400 Subject: [PATCH] created a config object and linked the main.js to index.html --- src/index.html | 1 + src/main.js | 17 +++++++++++++++++ 2 files changed, 18 insertions(+) diff --git a/src/index.html b/src/index.html index 90bbe69..3c8263c 100644 --- a/src/index.html +++ b/src/index.html @@ -11,5 +11,6 @@ + \ No newline at end of file diff --git a/src/main.js b/src/main.js index e69de29..370f80a 100644 --- a/src/main.js +++ b/src/main.js @@ -0,0 +1,17 @@ +var config = { + type: Phaser.AUTO, + width: 800, + height: 600, + physics: { + default: 'arcade', + arcade: { + gravity: {y: 300}, + debug: false + } + }, + scene: { + preload: preload, + create: create, + update: update + } +};