From 2a4f86bf7f94237805aea2ac5f57fa2827fe3af9 Mon Sep 17 00:00:00 2001 From: Rob Drake Date: Thu, 12 Sep 2019 14:43:05 -0500 Subject: [PATCH] start of side scroller --- .../MortalWombat/public_html/index.html | 10 ++++++++++ .../MortalWombat/public_html/mortalwombat.js | 18 ++++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 sidescroller/MortalWombat/public_html/index.html create mode 100644 sidescroller/MortalWombat/public_html/mortalwombat.js diff --git a/sidescroller/MortalWombat/public_html/index.html b/sidescroller/MortalWombat/public_html/index.html new file mode 100644 index 0000000..8c1c714 --- /dev/null +++ b/sidescroller/MortalWombat/public_html/index.html @@ -0,0 +1,10 @@ + + + + + Mortal Wombat + + + + + diff --git a/sidescroller/MortalWombat/public_html/mortalwombat.js b/sidescroller/MortalWombat/public_html/mortalwombat.js new file mode 100644 index 0000000..8a3b0eb --- /dev/null +++ b/sidescroller/MortalWombat/public_html/mortalwombat.js @@ -0,0 +1,18 @@ +const config = { + type: PHASER.AUTO, + width: 800, + height: 600, + physics: { + default: 'arcade', + arcade: { + gravity: {y: 500}, + debug: false + } + }, + scene: { + key: 'main', + preload: preload, + create: create, + update: update + } +}; \ No newline at end of file