start of side scroller

This commit is contained in:
Rob Drake 2019-09-12 14:43:05 -05:00
parent c8c4aca574
commit 2a4f86bf7f
2 changed files with 28 additions and 0 deletions

View File

@ -0,0 +1,10 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Mortal Wombat</title>
</head>
<body>
<script src="./mortalwombat.js"></script>
</body>
</html>

View File

@ -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
}
};