forked from iamdey/Monorail-Cat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmonorail-cat.html
51 lines (47 loc) · 1.92 KB
/
monorail-cat.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
48
49
50
51
<!DOCTYPE HTML>
<html>
<head>
<title>Monorail cat</title>
<script type="text/javascript" src="vendor/jsGameSoup-v173/js/jsgamesoup.js"></script>
<script type="text/javascript" src="vendor/jsGameSoup-v173/js/sprite.js"></script>
<script type="text/javascript" src="libs/common.js"></script>
<script type="text/javascript" src="libs/ui.js"></script>
<script type="text/javascript" src="libs/tilemap.js"></script>
<script type="text/javascript" src="libs/map.js"></script>
<script type="text/javascript" src="libs/player.js"></script>
<script type="text/javascript" src="libs/map_item.js"></script>
<script type="text/javascript" src="libs/game.js"></script>
<script type="text/javascript" src="libs/entity.js"></script>
<link rel="stylesheet" href="main.css" type="text/css" />
</head>
<body onload="loadMap()">
<div id="gameBoard">
<div id="player1">
<p class="playerName" id="player1name">Player 1</p>
<p><img class="bonusImage" src="arts/blank.png" id="player1bonus"></img></p>
<p class="lives" id="player1lives"></p>
</div>
<div id="player2">
<p class="playerName" id="player2name">Player 2</p>
<p><img class="bonusImage" src="arts/blank.png" id="player2bonus"></img></p>
<p class="lives" id="player2lives"></p>
</div>
<div id="gameView">
<div id="header">
<p>
<img src="arts/title.png"></img>
</p>
</div>
<canvas id="tileMap" height="553" width="554" style="position:relative; top:10px; left:0px; z-index:1;"></canvas>
<canvas id="monorail-cat" height="553" width="554" style="position:relative; top:-550px; left:-5px; z-index:2;"></canvas>
</div>
</div>
<div id="msg"></div>
<script type="text/javascript">
UI.setPlayerLives(1, 9);
UI.setPlayerLives(2, 5);
// bootscreen
UI.printMsg('<img src="arts/TEH REAL CAT.jpg"></img>', UI.HUGE, 750, 'startGame();');
</script>
</body>
</html>