-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgame.html
74 lines (60 loc) · 3.56 KB
/
game.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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>PseudoRandom - Combat Encounter Tester</title>
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
<!-- p5
<script language="javascript" type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.7.3/p5.min.js"></script>
<script language="javascript" type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.7.3/addons/p5.dom.min.js"></script>-->
<!-- local p5-->
<script language="javascript" type="text/javascript" src="local dependencies/p5.min.js"></script>
<script language="javascript" type="text/javascript" src="local dependencies/p5.dom.min.js"></script>
<!-- FONTS -- IRRELEVANT IN LOCAL-->
<link href="https://fonts.googleapis.com/css?family=Oswald" rel="stylesheet">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons"rel="stylesheet">
<!-- Pure CSS
<link rel="stylesheet" href="https://unpkg.com/[email protected]/build/pure-min.css" integrity="sha384-nn4HPE8lTHyVtfCBi5yW9d20FjT8BJwUXyWZT9InLYax14RDjBj46LmSztkmNP9w" crossorigin="anonymous"> -->
<!-- Local Pure CSS -->
<link rel="stylesheet" href="local dependencies/purecss.css">
<link href="./style/main.css" rel="stylesheet" />
<link href="./style/game.css" rel="stylesheet" />
</head>
<body>
<div id="page_content" style="cursor : crosshair; grid-row : 1/-1;">
<!-- Menu toggles each tab.-->
<div id="menu">
<input type="submit" value="Game" id="game" onclick="toggleTab(this.id)" /> <br/>
<input type="submit" value="Turn" id="turn" onclick="toggleTab(this.id)" /> <br/>
<input type="submit" value="Troop" id="troop" onclick="toggleTab(this.id)" /> <br/>
<input type="submit" value="Game Logs" id="logs" onclick="toggleTab(this.id)" /> <br/>
</div>
<!--Game Tab allows to pick a Local Game, to pick a Player in that game or to Input an Online id of some sort. -->
<div id="gameTab">
</div>
<!-- Turn Tab is populated by <scripts> with the Initiative Order updated according to the game's state -->
<div id="turnTab"> </div>
<!-- Logs Tab is populated by <scripts> with the Game Log-->
<div id="logsTab"> </div>
<!-- Action Tab is populated by <scipts> with the hovered Action's information -->
<div id="actionTab"> </div>
<!-- Troop Tab is populated by <scipts> with the currently playing troop's information. -->
<div id="troopTab"></div>
</div>
<div id="scripts">
<!-- Camera is the class responsible for drawing most things on the canvas. -->
<script src="scripts/Camera.js"> </script>
<!-- Troop is the class allowing to roll dices and basically play the game. -->
<script src="scripts/Troop.js"> </script>
<!-- AI is the class responsible for making Troop decisions. -->
<script src="scripts/AI.js"> </script>
<!-- Util is basically all the shared code, so yeah, it's always gun'be messy there. -->
<script src="scripts/util.js"> </script>
<!-- This is responsible for both the game's canvas drawing and all the good bits. -->
<script src="scripts/Canvas/gameMain.js"> </script>
<!-- This is responsible for the DOM manipulations up there. -->
<script src="scripts/DOM/gameDOM.js"> </script>
</div>
</body>
</html>