Repository navigation
Expand file tree
/
Copy pathBackgammon.html
More file actions
61 lines (56 loc) · 2.69 KB
/
Copy pathBackgammon.html
File metadata and controls
61 lines (56 loc) · 2.69 KB
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
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8" />
<title>Backgammon</title>
<link href="Styles/backgammon.css" rel="stylesheet" />
<link href="Styles/sweetalert.css" rel="stylesheet" />
<script src="Scripts/lib/jquery-2.1.4.js"></script>
<script src="Scripts/lib/kinetic.js"></script>
<script src="Scripts/lib/sweetalert.min.js"></script>
</head>
<body>
<canvas id="the-canvas" width="1359" height="639"></canvas>
<svg width="1359" height="639" id="theSvg">
<radialGradient id="blackCircleGradient" cy="60%" fx="45%" fy="45%" r="2">
<stop offset="0%" stop-color="grey" />
<stop offset="25%" stop-color="black" />
</radialGradient>
<radialGradient id="whiteCircleGradient" cy="60%" fx="45%" fy="45%" r="2">
<stop offset="0%" stop-color="grey" />
<stop offset="25%" stop-color="white" />
</radialGradient>
<image id="boardImage" xlink:href="Images/Board800x600.jpg" x="10" y="10" width="800" height="600" />
<text class="textGoodBye" id="textThanks" x="375" y="300" fill="blue"></text>
<text class="textGoodBye" id="textGoodbye" x="530" y="400" fill="blue"></text>
<text onclick="svgLogic.play()" class="button" id="textPlay" x="579" y="206">Play</text>
<text onclick="svgLogic.getHelp()" class="button" id="textHelp" x="600" y="359">Help</text>
<text onclick="svgLogic.exitGame()" class="button" id="textExit" x="630" y="498">Exit</text>
<text id="firstPlayerText" x="245" y="206" fill="blue">Who is playing Whites?</text>
<text id="secondPlayerText" x="259" y="206" fill="blue">Who is playing Blacks?</text>
<foreignObject x="472" y="289" width="500" height="550">
<body xmlns="http://www.w3.org/1999/xhtml">
<form>
<input type="text" id="firstPlayer-name" value="Player One" name="fname" />
<input type="text" id="secondPlayer-name" value="Player Two" name="sname" />
</form>
</body>
</foreignObject>
<text class="button" onclick="svgLogic.setName()" x="555" y="498" id="proceedButton">Proceed</text>
</svg>
<div id="kinetic-container"></div>
<div id="dices">
<img id="dice1" />
<img id="dice2" />
</div>
<div id="pair">
<img id="dice3" />
<img id="dice4" />
</div>
<script src="Scripts/MenuScripts.js"></script>
<script src="Scripts/LogoScript.js"></script>
<script src="Scripts/GameObjects.js"></script>
<script src="Scripts/GameDraw.js"></script>
<script src="Scripts/GameEngine.js"></script>
</body>
</html>