-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathPFA-Exporter-Test.html
46 lines (38 loc) · 1.27 KB
/
PFA-Exporter-Test.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
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>Phaser Flash Exporter Test</title>
<script type="text/javascript" src="phaser.min.js"></script>
<script type="text/javascript" src="PFA-Exporter.js"></script>
<style type="text/css">
body {
margin: 0;
background-color: #ccc;
}
</style>
</head>
<body>
<script type="text/javascript">
(function() {
var game = new Phaser.Game(lib.properties.width, lib.properties.height, Phaser.AUTO, '', {preload: preload, create: create, update: update });
function preload() {
game.load.atlas(lib.properties.atlas.name, lib.properties.atlas.image, lib.properties.atlas.metadata);
}
function create() {
game.stage.backgroundColor = lib.properties.color;
game.add.existing(lib.RabbitLegAward(game, 10, 10));
game.add.existing(lib.LuckAward(game, 100, 10));
game.add.existing(lib.RabbitLegAward(game, 200, 10));
game.add.existing(lib.CrossAward(game, 300, 10));
game.add.existing(lib.CrossAward(game, 400, 10));
game.add.existing(lib.CrossAward(game, 400, 10));
game.add.existing(lib.HorseshoeCircle(game, 10, 100));
game.add.existing(lib.PolyStarKey(game, 600, 10));
}
function update() {
}
})();
</script>
</body>
</html>