-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
116 lines (99 loc) · 4.46 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Dragon Slots</title>
<meta name="viewport" content="width=device-width, initial-scale = 1, maximum-scale = 1">
<link rel="stylesheet" href="css/style.css">
<link href='https://fonts.googleapis.com/css?family=Gochi+Hand' rel='stylesheet' type='text/css'>
</head>
<body>
<h1>Dragon Slots [WORK IN PROGRESS]</h1>
<h2><a href="http://www.andredantas.com">www.andredantas.com</a></h2>
<h3><a href="https://github.com/andre-lima/Dragon-Slots">github repository</a></h3>
<div id="game-status"></div>
<!--
<div id="game">
<canvas id="canvas">Your browser doesn't support the canvas element. Check this website update your browser: http://browsehappy.com/</canvas>
</div>
-->
<div id="characters">
<div id="heroes">
<div class="hero" id="warrior">
<div><img src="images/warrior.png" alt="warrior" /></div>
<p class="health" id="warrior-health">200 </p>
<img src="images/shield.png" alt="shield" id="warrior-shield" class="hero-shields hide" />
</div>
<div class="hero" id="rogue">
<div><img src="images/rogue.png" alt="rogue" /></div>
<p class="health" id="rogue-health">150 </p>
<img src="images/shield.png" alt="shield" id="rogue-shield" class="hero-shields hide" />
</div>
<div class="hero" id="wizard">
<div><img src="images/wizard.png" alt="wizard" /></div>
<p class="health" id="wizard-health">100 </p>
<img src="images/shield.png" alt="shield" id="wizard-shield" class="hero-shields hide" />
</div>
</div>
<div id="dragon" class="">
<div><img src="images/dragon.png" alt="dragon" /></div>
<div id="fire-progress">
<p id="fire-title">Fire Breath Attack</p>
<div id="fire-value"></div>
</div>
<p class="health" id="dragon-health">1000</p>
</div>
</div>
<div>
<input type="button" id="roll" value="ROLL!" />
<p id="money">$200.00</p>
</div>
<div id="slots"></div>
<div id="rules">
<pre>
## Current Rules
- You have 3 heroes on your side against a Fire Dragon.
- Click the ROLL! button to roll the slot machine.
- If you get a combination of 3 tiles, the tile action
will be performed.
- The Wild Card allows combination with any of the other tiles.
- Beware of the Claw Attack tile. It'll cause one of your
heroes damage.
- After each roll, the dragon charges his fire attack a bit.
Once it's reached 100%, all heroes will receive the attack.
- Once one hero is dead, the tiles related to the hero skills
can no longer perform its actions.
- You can click/tap a tile to lock it for the next round. This
costs $1 per locked tile. Rolling or clicking on it again,
makes the tile unlock.
- Get a sequence of chests and get more money.
(soon, more rules regarding the money in-game)
*Characters:*
**Dragon**
- Powerful claw and fire attacks
**Warrior**
- Strong sword causes a lot of damage to the dragon
- Shield protects all heroes from half of the dragon's
damage, until the next dragon's attack.
**Rogue**
- Arrow causes average damage.
- Sneak attack causes low damage but delays the dragon's
fire attack.
**Wizard**
- Lightning attack causes a lot of damage.
- Healing gives more health to all heroes.
</pre>
</div>
<script src="scripts/characters.js"></script>
<script src="scripts/game-logic.js"></script>
<script src="scripts/slots.js"></script>
<script> <!-- google analytics -->
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-90588840-1', 'auto');
ga('send', 'pageview');
</script>
</body>
</html>