html
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
<!-- Created by Beth-->
<!-- Created by Beth -->
<!DOCTYPE html>
<html>
<head>
<title>Clicker Game</title>
<meta name="viewport" content="width=device-width">
<script src="https://code.jquery.com/jquery-3.1.1.js"></script>
</head>
<body>
<span id="s0">Monster HP </span>
<span id ="d1"></span>
<div id="imgCont">click me
<img id="img" src="https://dl.dropbox.com/s/ue0xp3efc60imj2/Photo%20Jul%2003%2C%2010%2006%2031%20AM.jpg?raw=1">
</div>
<!-- <button id="b1">Attack</button>-->
<table id="t1">
<th>Stats</th>
<tr>
<td>Killed Monsters: </td> <td id="s2">0</td>
</tr>
<tr>
<td>Money: </td> <td id="s4">0</td>
</tr>
<tr>
<td>Hero damage: </td> <td id="s6">5</td>
Enter to Rename, Shift+Enter to Preview
css
css
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
/* Created by Beth */
/* Created by Beth */
body{
background: linear-gradient( #f5926e, #ec5689);
}
#img{
width:250px;
height:300px;
position:absolute;
top:10%;
left:1%;
}
#imgCont{
position:relative;
background-color: white;
top:10px;
left:3px;
margin-bottom:-200px;
width: 320px;
height: 350px;
border-radius:10%;
border:5px ridge grey;
text-align:center;
Enter to Rename, Shift+Enter to Preview
js
js
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
// Created by Beth
// Created by Beth
$(function(){
alert("It is sugested that you run this \n code on a ipad or coumputer \n due to graphic issues");
alert ("that being said \n if you would like to help me resolve the graphic issues \n with this code please visit my\n post on the subject \n (link in comments)")
alert ("every 20 monsters you defeat \nthere will be a boss who can regenerate health\n GOOD LUCK 🙂")
var heroDamage = 5, //Hero damage
enemyHP = 30, //Health point 1st enemy
upEnemyHP = 1.1,//monster HP multiplier
waves = 0, // defeated monsters
money = 0,
monsCount = 0,
rewUp = 1.1, //reward multiplier
reward = 1,
upgAtCost = 5,
companion = false,
boss = false,
compDamage = 0,
compBlow = 0,
compBlowCost = 400;
heroLevel = 1,
SP = 0, //skill points
Enter to Rename, Shift+Enter to Preview
BROWSER
Console
Run