-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbattle.html
47 lines (39 loc) · 884 Bytes
/
battle.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>Phaser RPG battle</title>
<style type="text/css">
body {
margin: 0;
}
</style>
</head>
<body>
<script src="./scenes/battle.js"></script>
<script src="./scenes/battleUI.js"></script>
<script type="text/javascript">
var config = {
type: Phaser.AUTO,
width: 320,
height: 240,
zoom: 2,
pixelArt: true,
physics: {
default: 'arcade',
arcade: {
gravity: { y: 0 },
debug: true
},
debug: true
},
scene: [
BattleScene,
UIScene
]
};
var game = new Phaser.Game(config);
</script>
</body>
</html>