start of side scroller
This commit is contained in:
parent
c8c4aca574
commit
2a4f86bf7f
10
sidescroller/MortalWombat/public_html/index.html
Normal file
10
sidescroller/MortalWombat/public_html/index.html
Normal 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>
|
18
sidescroller/MortalWombat/public_html/mortalwombat.js
Normal file
18
sidescroller/MortalWombat/public_html/mortalwombat.js
Normal 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
|
||||||
|
}
|
||||||
|
};
|
Loading…
Reference in New Issue
Block a user