-
Notifications
You must be signed in to change notification settings - Fork 0
/
lost_Suns_Ver_0.01.html
80 lines (70 loc) · 3.7 KB
/
lost_Suns_Ver_0.01.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
<!DOCTYPE html>
<html lang="en" ng-app="game">
<!--In order to decrease the amount of downloading for the user I have tried
to include a few CDNs including google fonts -->
<head>
<title>Game Tests</title>
<link rel="stylesheet" type="text/css" href="./css/game.css">
<link href="https://fonts.googleapis.com/css?family=Gugi" rel="stylesheet">
</head>
<!--Loads the controller and the XML data-->
<body ng-controller="gameController" ng-init="dataLoad()">
<!--Defines the route paths for the HTML document-->
<div class="header">
<a href="#/">Main</a>
<a href="#/instructions">Instructions</a>
<a href="#/login">Change Name/Class</a>
</div>
<!--Canvas in loaded into the main window-->
<div class="gameContainer">
<div id="main_window"></div>
<!--Counter which helps update the game in the Angular JS file. Acts almost like a game loop-->
<div id="timer"> {{ count }} </div>
<div class="infoContainer">
<!--When an item can be looted these buttons appear and allow for looting-->
<button id="loot" type="submit" onclick="loot()" style="visibility: hidden">Loot</button>
<button id="endLoot" type="submit" onclick="endLoot()" style="visibility: hidden" ng-hide>Discard</button>
<div>
<!--Player is bound to the HTML document-->
<div class="player">
<!-- <span class="charDetails">{{ characterName }}</span> -->
<span class="charDetails">{{ characterType }}</span>
<span class="charDetails">{{ characterHealth }}</span>
</div>
<!--Boss is bound to the HTML document-->
<div class="boss">
<span class="bossDetails">{{ bossName }}</span>
<span class="bossDetails">{{ bossType }}</span>
<span class="bossDetails">{{ bossHealth }}</span>
</div>
<!--This button is hit to toggle the item list-->
<button class="viewItems"
ng-click="toggle=!toggle">{{ toggle ? 'Hide Items' : 'Show All Obtainable Items' }}</button>
<!--Items for item list needed to be hardcoded as they were obtained from local storage from the plain JS file-->
<ul class="viewItems" ng-show="toggle">
<li draggable="true"> {{ items[0].name }} </li>
<li draggable="true"> {{ items[1].name }} </li>
<li draggable="true"> {{ items[2].name }} </li>
<li draggable="true"> {{ items[3].name }} </li>
</ul>
</div>
</div>
<!--Routes are Loaded Here-->
<div ng-view></div>
<div id="temporarySelection area">
<button type="button" onclick="selectedAbility();">Cycle Through Abilities</button>
<div id="selectedContainer"></div>
</div>
<div id="level"></div>
<div id="experience"></div>
</div>
<script src="./javascript/angular157.js"></script>
<script src="https://cdn.jsdelivr.net/npm/lodash@4.17.11/lodash.min.js"></script>
<script src="https://cdn.jsdelivr.net/ngstorage/0.3.6/ngStorage.min.js"></script>
<script src="https://rawgit.com/grevory/angular-local-storage/master/dist/angular-local-storage.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.28//angular-route.min.js"></script>
<script src="./javascript/stateSetup.js"></script>
<script src="./javascript/lost_Suns_Ver_0.0.9.js"></script>
<script src="./javascript/game_Controller.js"></script>
</body>
</html>