-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
129 lines (113 loc) · 4.51 KB
/
index.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
<!doctype html>
<html>
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Monster Maze</title>
<link rel="stylesheet" href="http://yui.yahooapis.com/pure/0.6.0/pure-min.css">
<link rel="stylesheet" href="http://yui.yahooapis.com/pure/0.6.0/grids-responsive-min.css">
<link rel="stylesheet" href="http://netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css">
<link rel="stylesheet" href="assets/styles/css/layouts/marketing.css">
<script src="assets/scripts/phaser.min.js"></script>
</head>
<body>
<div class="header">
<div class="home-menu pure-menu pure-menu-horizontal pure-menu-fixed">
<a class="pure-menu-heading not-active" href="#">Monster Maze</a>
<ul class="pure-menu-list">
<li class="pure-menu-item pure-menu-selected">
<a href="#" class="pure-menu-link not-active">
Navigate through the maze and fight monsters.
</a>
</li>
</ul>
</div>
</div>
<div class="splash-container">
<div id="gameContainer" class="splash">
<script type="text/javascript">
var player;
var pWeaponL;
var pWeaponD;
var pLShield;
var pDShield;
var playerGroup;
var map;
var layer;
var walls;
var health;
var speed;
var game;
var enemies;
var gamePhysics;
var healthbar;
var isinvinsible;
var gameOver;
var bulletCollisionGroup;
var blackBulletGroup;
var whiteBulletGroup;
var weapons = [];
var permainvincible = false; //toggle to debug with unlimited health
window.onload = function() {
game = new Phaser.Game(950, 600, Phaser.AUTO, 'gameContainer', { preload: preload, create: create, update: update, render: render });
};
</script>
</div>
</div>
<div class="content-wrapper">
<div class="content">
<h2 class="content-head is-center">CONTROLS</h2>
<div class="pure-g">
<div class="l-box pure-u-1 pure-u-md-1-2 pure-u-lg-1-4">
<h3 class="content-subhead">
<i class="fa fa-arrows"></i>
Movement
</h3>
<p>
Hold down the left mouse button to move around the map.
</p>
</div>
<div class="l-box pure-u-1 pure-u-md-1-2 pure-u-lg-1-4">
<h3 class="content-subhead">
<i class="fa fa-dot-circle-o"></i>
Combo Attack
</h3>
<p>
Mash the space bar to perform combo attacks with your sword.
</p>
</div>
<div class="l-box pure-u-1 pure-u-md-1-2 pure-u-lg-1-4">
<h3 class="content-subhead">
<i class="fa fa-circle-o"></i>
Light Shield
</h3>
<p>
Press the <b>Z</b> key to render a shield that deflects light projectiles.
</p>
</div>
<div class="l-box pure-u-1 pure-u-md-1-2 pure-u-lg-1-4">
<h3 class="content-subhead">
<i class="fa fa-circle"></i>
Dark Shield
</h3>
<p>
Press the <b>X</b> key to render a shield that deflects dark projectiles.
</p>
</div>
</div>
</div>
<div class="footer l-box is-center">
Hacked together during <a href="http://globalgamejam.org/2016/games/enter-cthulu" target="_blank">Global Game Jam 2016</a><br />
View the source code <a href="https://github.com/Maticuleus/MonsterMaze" target="_blank">here</a>
</div>
</div>
<script src="preload.js"></script>
<script src="create.js"></script>
<script src="update.js"></script>
<script src="render.js"></script>
<script src="weapons.js"></script>
<script src="playerupdate.js"></script>
<script src="enemieupdate.js"></script>
<script src="bossupdate.js"></script>
</body>
</html>