-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
281 lines (280 loc) · 12.3 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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
<!DOCTYPE html>
<html lang='en'>
<head>
<meta charset='UTF-8'>
<title>Back Scratching Salon</title>
<meta name='author' content='Jorengarenar'>
<meta name="description" content="You are an owner of Back Scratching Salon. Scratch itchy backs of your customer to earn bilions of $!">
<meta name="keywords" content="idle,game,back,scratch,salon">
<meta name="monetization" content="$coil.xrptipbot.com/cgvxd5YaS0yHvNNXPMV5jw">
<meta name='viewport' content='width=device-width,initial-scale=1,user-scalable=yes'>
<link rel='stylesheet' href='style.css'>
</head>
<body>
<div class='settingsWin modal hidden'>
<div class='hud'>
<label><input type="checkbox" name="autoMute"> Auto mute</label>
<label><input type="checkbox" name="autoSave"> Auto save</label>
<label><input type="checkbox" name="skipTitle"> Skip title screen</label>
<label><input type="checkbox" name="autoPause"> Start with taking a break</label>
<button onclick='save("settings", s); document.querySelector(".settingsWin").toggle()'>CLOSE AND SAVE</button>
</div>
</div>
<div class='exportWin modal hidden'>
<div class='hud'>
<textarea readonly=""></textarea>
<button onclick='document.querySelector(".exportWin").toggle()'>CLOSE</button>
</div>
</div>
<div class='importWin modal hidden'>
<div class='hud'>
<textarea></textarea>
<button id='loadImported'>LOAD</button>
<button onclick='document.querySelector(".importWin").toggle()'>CLOSE</button>
</div>
</div>
<div class='manual modal hidden'>
<div class='hud'>
<i>According to the fashion of AAA gaming manuals this is just boring black on white text</i>
<p>You are the owner of this beautiful salon where your customers can deal with their itching problems.</p>
<p>To earn your first money just scratch back of your first customer. If you aren't on mobile, then to do so click on the customer's back and move mouse over it.</p>
<p>On the left you can see a <b>shop</b> (if you are on mobile, click on the shopping card in top right).</p>
<p><b>Power Ups</b> are for you. You get getter at scratching</p>
<p><b>Equipment</b> are machines to earning money when you are lazing around.</p>
<p><b>Personnel</b> is there to aid you as you only know how to scratch backs.</p>
<p>In Power Ups and Equipment items have two labels next to buy button:</p>
<ul>
<li>Your currently owned amount of item and how much each of them will give you (power ups: scratching efficiency; equipment: money/second),</li>
<li>The cost of buying the next such item.</li>
</ul>
<p>If you are not working, then take a break, so customers won't wait for you. For every customer who doesn't get even a little bit of satisfaction, you will lose 10% of your money.</p>
<p>One of the first things you will want to do is to hire a janitor. Without him your place will get dirty and Centers for Disease Control and Prevention will give you a enormous fine.</p>
<p>If by payday you will not have enough money to pay your employees, all of them will quit.</p>
<p>On the bottom you can see control panel:</p>
<ul>
<li>First row: satisfy bar - how much your customer is satisfied,</li>
<li>Second row: customer timer, CMD messages, time to next tax, time to next payday, your money.</li>
</ul>
<p>The rest you will get from reading descriptions</p>
<p>Have fun!</p>
<br>
Back Scratching Salon is a game created by <a href='https://joren.ga'>Jorengarenar</a> for <a href='https://2019.js13kgames.com'>js13kGames 2019</a> competition.
<br>
Please, report technical problems <a href='https://github.com/Jorengarenar/BackScratchingSalon/issues'>here</a>
<button onclick='document.querySelector(".manual").toggle()'>CLOSE</button>
</div>
</div>
<div class='titleScreen'>
<div id='title'>Back Scratching Salon <p>by <a href='https://joren.ga' target='_blank'>Jorengarenar</a></p></div>
<div class="customer">
<div class="back"></div>
<div class="ears"></div>
<div class="hair long"></div>
</div>
<div class='newGameWarning modal hidden'>
<div class='hud'>
<p>Your previous progress will be lost, when you save (or game will autosave)</p>
<button onclick='this.parentNode.parentNode.toggle()'>ABORT</button>
<button onclick='startGame(0)'>OK</button>
</div>
</div>
<div class='menu'>
<button id='continue' class='hidden' onclick='startGame(1)'>CONTINUE</button>
<button id='newGame' onclick='startGame(0)'>NEW GAME</button>
<button onclick='document.querySelector(".settingsWin").toggle()'>SETTINGS</button>
<button onclick='document.querySelector(".manual").toggle()'>MANUAL</button>
</div>
<p id='version'>Version: 1.0</p>
</div>
<div class='playScreen hidden' onmouseup='mouseIsDown=0' onmousedown='mouseIsDown=1'>
<div class='customerContainer'>
<div class='customer'></div>
<div class='break hidden'><p>I'M ON BREAK </p>
<div class='backToWork hidden' onclick='togglePause()'>BACK TO WORK</div>
</div>
<div class='takeBreak' onclick='togglePause()'>TAKE<br>BREAK</div>
</div>
<p class='showShop' onclick='toggleShopMobile()'>🛒</p>
<div class='backToTitleConfirm modal hidden'>
<div class='hud'>
<p>Are you sure? All unsaved progress will be lost</p>
<button onclick='this.parentNode.parentNode.toggle()'>NO</button>
<button onclick='backToTitle()'>YES</button>
<button onclick='save("data", d); backToTitle()'>SAVE AND RETURN TO TITLE</button>
</div>
</div>
<div class='menu'>
<p class='unwindMenu' onclick='toggleMenu(this)'>☰</p>
<p class='backToTitle' title='RETURN TO TITLE SCREEN' onclick='document.querySelector(".backToTitleConfirm").toggle()'>🔙</p>
<p class='sound' title='MUTE/UNMUTE' onclick='toggleMute()'>🔈</p>
<p class='save' title='SAVE' onclick='save("data", d)'>💾</p>
<p class='export' title='EXPORT SAVE' onclick='export_save()'>📤</p>
<p class='import' title='IMPORT SAVE' onclick='import_save()'>📥</p>
<p class='settings' title='SETTINGS' onclick='document.querySelector(".settingsWin").toggle()'>🛠</p>
</div>
<div class='management'>
<div class='tabs'>
<button class='close' onclick='toggleShopMobile()'>CLOSE</button>
<button class='powerUps current'>POWER-UPS</button>
<button class='equipment'>EQUIPMENT</button>
<button class='personnel'>PERSONNEL</button>
</div>
<div class='powerUps current'>
<div id="fingers" class='hud item'>
<h1>FINGER</h1>
<p>Multiply amount of your itching power (and money making) by increasing amount of your fingers!</p>
<div class='bottomRow'>
<div class='amount' data-worth=0.2></div>
<div class='price' data-initiator=15></div>
</div>
</div>
<div id="hands" class='hud item'>
<h1>HAND</h1>
<p>More hands won't make your scratching any better, but you will gain speed!<br>P.S. No more than 10!</p>
<div class='bottomRow'>
<div class='amount' data-worth=0 data-max=10></div>
<div class='price' data-initiator=30></div>
</div>
</div>
<div id="longNails" class='hud item'>
<h1>LONG NAILS</h1>
<p>Everybody knows that the longer the nails the better the scratch</p>
<div class='bottomRow'>
<div class='amount' data-worth=0.5></div>
<div class='price' data-initiator=150></div>
</div>
</div>
<div id="bark" class='hud item'>
<h1>BARK</h1>
<p>Bears use it so you can too!</p>
<div class='bottomRow'>
<div class='amount' data-worth=2></div>
<div class='price' data-initiator=500></div>
</div>
</div>
<div id='scratcher' class='hud item'>
<h1>SCRATCHER</h1>
<p>Just stupid scratcher. You know how to use it</p>
<div class='bottomRow'>
<div class='amount' data-worth=4></div>
<div class='price' data-initiator='1300'></div>
</div>
</div>
<div id='sandpaper' class='hud item'>
<h1>SANDPAPER</h1>
<p>For really itchy backs</p>
<div class='bottomRow'>
<div class='amount' data-worth=5></div>
<div class='price' data-initiator=1999></div>
</div>
</div>
</div>
<div class='equipment'>
<div id="toothbrush" class='hud item'>
<h1>ELECTRIC TOOTHBRUSH</h1>
<p>For some people it's enough</p>
<div class='bottomRow'>
<div class='amount' data-worth=0.10></div>
<div class='price' data-initiator=5></div>
</div>
</div>
<div id="laser" class='hud item'>
<h1>LASER POINTER</h1>
<p>Those red dots of hell brings all stray cats from neighborhood. What will happen when you direct them on you customers' backs?</p>
<div class='bottomRow'>
<div class='amount' data-worth=0.25></div>
<div class='price' data-initiator=20></div>
</div>
</div>
<div id="blender" class='hud item'>
<h1>BLENDER</h1>
<p>If it's good enough to prepare food then it's good enough to scratch some backs!</p>
<div class='bottomRow'>
<div class='amount' data-worth=1></div>
<div class='price' data-initiator=50></div>
</div>
</div>
<div id="grinder" class='hud item'>
<h1>GRINDER</h1>
<p>Back cannot itch if there is no back</p>
<div class='bottomRow'>
<div class='amount' data-worth=10></div>
<div class='price' data-initiator=100></div>
</div>
</div>
<div id="powerWasher" class='hud item'>
<h1>POWER WASHER</h1>
<p>Just wash the itch away!</p>
<div class='bottomRow'>
<div class='amount' data-worth=25></div>
<div class='price' data-initiator=150></div>
</div>
</div>
<div id='chainsaw' class='hud item'>
<h1>CHAINSAW</h1>
<p>Who likes restrictions? You definitely not!</p>
<div class='bottomRow'>
<div class='amount' data-worth=50></div>
<div class='price' data-initiator=185></div>
</div>
</div>
<div id="lawnMower" class='hud item'>
<h1>LAWN MOWER</h1>
<p>Just mow your customer back!</p>
<div class='bottomRow'>
<div class='amount' data-worth=100></div>
<div class='price' data-initiator='250'></div>
</div>
</div>
</div>
<div class='personnel'>
<div id="janitor" class='hud item'>
<h1>JANITOR</h1>
<p>Janitor a day keeps an inspectorate away</p>
<div class='bottomRow'>
<div class='amount' data-max=1></div>
<div class='price'>10</div>
</div>
</div>
<div id="accountant" class='hud item'>
<h1>Accountant</h1>
<p>Reduces tax from merciless 20% to only 1%</p>
<div class='bottomRow'>
<div class='amount' data-max=1></div>
<div class='price'>300</div>
</div>
</div>
<div id="technician" class='hud item'>
<h1>Technician</h1>
<p>With him your equipment is twice as efficient</p>
<div class='bottomRow'>
<div class='amount' data-max=1></div>
<div class='price'>200</div>
</div>
</div>
</div>
</div>
<div class='hudBar hud'>
<div id='progressBar'>
<div id='satisfyBar'></div>
</div>
<div class='timer'>--</div>
<div class='cmd '># <span>_</span></div>
<div class=''>Tax: <span id='nextTax'></span></div>
<div class=''>Payday: <span id='nextPayday'></span></div>
<div class='money'></div>
</div>
</div>
<script src='script.js'></script>
</body>
</html>
<!-- MANAGEMENT ITEM snippet
<div id="" class='hud item'>
<h1></h1>
<p></p>
<div class='bottomRow'>
<div class='amount' data-worth=></div>
<div class='price' data-initiator=></div>
</div>
</div>
-->