-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDemo_09_Plants.html
44 lines (41 loc) · 1.37 KB
/
Demo_09_Plants.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
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Plants vs Zombies</title>
<style>
div,canvas {
margin: 0;
padding: 0;
}
canvas {
background:none;
z-index:2;
position: absolute;
top: 0px;
left: 0px;
float: left;
}
#mapCanvas {
z-index:1;
}
</style>
<script type="text/javascript" src="Plants/js/helpers.js"></script>
<script type="text/javascript" src="Plants/js/Zombie.js"></script>
<script type="text/javascript" src="Plants/js/Plant.js"></script>
<script type="text/javascript" src="Plants/js/PlantSunFlower.js"></script>
<script type="text/javascript" src="Plants/js/PlantPeaseShooter.js"></script>
<script type="text/javascript" src="Plants/js/PlantWallNut.js"></script>
<script type="text/javascript" src="Plants/js/PlantTallNut.js"></script>
<script type="text/javascript" src="Plants/js/init.js"></script>
</head>
<body style="background:#111">
<img style="display:none;" id="img-shovel" src="Plants/img/shovel.png"/>
<img style="display:none;" id="img-peashooter" src="Plants/img/peashooter.png"/>
<img style="display:none;" id="img-tallnut" src="Plants/img/tallnut.png"/>
<img style="display:none;" id="img-wallnut" src="Plants/img/wallnut.png"/>
<img style="display:none;" id="img-sunflower" src="Plants/img/sunflower.png"/>
<canvas id="canvas"></canvas>
<canvas id="mapCanvas"></canvas>
</body>
</htmlq