start of side scroller
This commit is contained in:
parent
c8c4aca574
commit
2a4f86bf7f
|
@ -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>
|
|
@ -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
|
||||
}
|
||||
};
|
Loading…
Reference in New Issue