@indextools/index-games 0.0.0-stage → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +73 -2
- package/index.svg +53 -0
- package/package.json +47 -5
- package/public/404.html +50 -0
- package/public/baremux/worker.js +2 -0
- package/public/config.js +27 -0
- package/public/games/agesofconflict.html +224 -0
- package/public/games/baldi.html +50 -0
- package/public/games/boi.html +132 -0
- package/public/games/brotato.html +142 -0
- package/public/games/fnae.html +153 -0
- package/public/games/games.json +122 -0
- package/public/games/gamesuggestion.html +12 -0
- package/public/games/geodash.html +274 -0
- package/public/games/kidchess.html +52 -0
- package/public/games/lebronclicker.html +763 -0
- package/public/games/monstertracks.html +31 -0
- package/public/games/nealfun.html +52 -0
- package/public/games/slitherio.html +186 -0
- package/public/games/slope.html +114 -0
- package/public/games/spacewaves.html +246 -0
- package/public/games/wheeliebike.html +50 -0
- package/public/icons/BNG-Favicon.png +0 -0
- package/public/icons/CGPT-Favicon.png +0 -0
- package/public/icons/CMG-Favicon.jpg +0 -0
- package/public/icons/CZG-Favicon.png +0 -0
- package/public/icons/DC-Favicon.png +0 -0
- package/public/icons/DDG-Favicon.png +0 -0
- package/public/icons/G-Favicon.png +0 -0
- package/public/icons/GH-Favicon.png +0 -0
- package/public/icons/GameSuggestions-Favicons.png +0 -0
- package/public/icons/MCTF-Favicon.png +0 -0
- package/public/icons/MP4-Favicon.webp +0 -0
- package/public/icons/NDF-Favicon.png +0 -0
- package/public/icons/NGG-Favicon.png +0 -0
- package/public/icons/RDT-Favicon.png +0 -0
- package/public/icons/RPT-Favicon.png +0 -0
- package/public/icons/S-Favicon.png +0 -0
- package/public/icons/TT-Favicon.png +0 -0
- package/public/icons/X-Favicon.jpg +0 -0
- package/public/icons/YT-Favicon.png +0 -0
- package/public/index.css +888 -0
- package/public/index.html +1141 -0
- package/public/index.js +76 -0
- package/public/index.svg +53 -0
- package/public/register-sw.js +29 -0
- package/public/search.js +32 -0
- package/public/sw.js +16 -0
- package/server.js +46 -0
- package/src/index.js +96 -0
|
@@ -0,0 +1,763 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8">
|
|
5
|
+
<title>LeBron Aura Clicker - GOAT Edition</title>
|
|
6
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
7
|
+
<style>
|
|
8
|
+
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Barlow+Condensed:wght@400;600;700&display=swap');
|
|
9
|
+
*{box-sizing:border-box;margin:0;padding:0;}
|
|
10
|
+
:root{--gold:#FFD700;--gold2:#e8b800;--dark:#080808;--panel:#0f0f0f;--border:#2a2a2a;--red:#c0392b;--text:#e0e0e0;}
|
|
11
|
+
html{scrollbar-width:thin;scrollbar-color:#222 #080808;}
|
|
12
|
+
::-webkit-scrollbar{width:8px;}
|
|
13
|
+
::-webkit-scrollbar-track{background:#080808;}
|
|
14
|
+
::-webkit-scrollbar-thumb{background:#222;border-radius:4px;}
|
|
15
|
+
body{font-family:'Barlow Condensed',sans-serif;background:#080808;color:var(--text);display:flex;justify-content:center;align-items:flex-start;min-height:100vh;user-select:none;overflow-x:hidden;}
|
|
16
|
+
.bg-anim{position:fixed;top:0;left:0;width:100%;height:100%;z-index:-1;pointer-events:none;overflow:hidden;}
|
|
17
|
+
.particle{position:absolute;border-radius:50%;animation:particleFloat linear infinite;opacity:0;}
|
|
18
|
+
@keyframes particleFloat{0%{transform:translateY(110vh) scale(0);opacity:0;}10%{opacity:0.4;}90%{opacity:0.4;}100%{transform:translateY(-10vh) scale(1.5);opacity:0;}}
|
|
19
|
+
.scanline{position:fixed;top:0;left:0;width:100%;height:100%;background:repeating-linear-gradient(0deg,transparent,transparent 2px,rgba(0,0,0,0.12) 2px,rgba(0,0,0,0.12) 4px);pointer-events:none;z-index:9998;}
|
|
20
|
+
.wrapper{display:flex;gap:0;width:100%;max-width:1120px;margin:0 auto;padding:16px;}
|
|
21
|
+
.sidebar-left{width:245px;flex-shrink:0;display:flex;flex-direction:column;gap:10px;}
|
|
22
|
+
.main-area{flex:1;display:flex;flex-direction:column;align-items:center;padding:0 20px;}
|
|
23
|
+
.sidebar-right{width:285px;flex-shrink:0;display:flex;flex-direction:column;gap:8px;}
|
|
24
|
+
#title{font-family:'Bebas Neue',sans-serif;font-size:2.8rem;background:linear-gradient(135deg,var(--gold),#fff 50%,var(--gold));-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;text-align:center;letter-spacing:3px;line-height:1;margin-bottom:2px;filter:drop-shadow(0 0 15px rgba(255,215,0,0.4));}
|
|
25
|
+
#subtitle{font-size:0.7rem;color:#444;text-align:center;letter-spacing:4px;text-transform:uppercase;margin-bottom:8px;}
|
|
26
|
+
.stat-panel{background:var(--panel);border:1px solid var(--border);border-radius:8px;padding:10px 12px;text-align:center;}
|
|
27
|
+
.stat-val{font-family:'Bebas Neue',sans-serif;font-size:1.8rem;color:var(--gold);line-height:1;}
|
|
28
|
+
.stat-label{font-size:0.6rem;color:#444;letter-spacing:2px;text-transform:uppercase;}
|
|
29
|
+
#lebron-wrap{position:relative;cursor:pointer;margin:8px 0;}
|
|
30
|
+
#lebron{width:200px;height:200px;object-fit:cover;border-radius:50%;border:3px solid var(--gold);box-shadow:0 0 30px rgba(255,215,0,0.3),0 0 60px rgba(255,215,0,0.1);transition:transform 0.05s,box-shadow 0.1s;display:block;}
|
|
31
|
+
#lebron:active{transform:scale(0.93);}
|
|
32
|
+
#lebron-wrap:hover #lebron{box-shadow:0 0 50px rgba(255,215,0,0.6),0 0 100px rgba(255,215,0,0.2);}
|
|
33
|
+
.click-ripple{position:absolute;border-radius:50%;border:2px solid var(--gold);animation:rippleOut 0.5s ease-out forwards;pointer-events:none;top:50%;left:50%;transform:translate(-50%,-50%);}
|
|
34
|
+
@keyframes rippleOut{0%{width:0;height:0;opacity:1;}100%{width:250px;height:250px;opacity:0;}}
|
|
35
|
+
#rebirthBtn{font-family:'Bebas Neue',sans-serif;font-size:1.1rem;letter-spacing:2px;padding:10px;border-radius:8px;border:2px solid var(--gold);background:transparent;color:var(--gold);cursor:pointer;transition:0.2s;width:100%;opacity:0.35;pointer-events:none;}
|
|
36
|
+
#rebirthBtn.ready{opacity:1;pointer-events:all;animation:pulseBorder 1.5s infinite;}
|
|
37
|
+
#rebirthBtn.ready:hover{background:var(--gold);color:#000;}
|
|
38
|
+
@keyframes pulseBorder{0%,100%{box-shadow:0 0 0 0 rgba(255,215,0,0.6);}50%{box-shadow:0 0 0 10px rgba(255,215,0,0);}}
|
|
39
|
+
.prestige-info{font-size:0.8rem;color:#666;text-align:center;background:var(--panel);border:1px solid var(--border);border-radius:8px;padding:10px;line-height:1.7;}
|
|
40
|
+
.prestige-info span{color:var(--gold);}
|
|
41
|
+
.btn-gold{background:var(--gold);color:#000;border:none;padding:8px;border-radius:6px;font-weight:700;cursor:pointer;font-family:'Bebas Neue',sans-serif;font-size:1rem;letter-spacing:1px;width:100%;transition:0.15s;}
|
|
42
|
+
.btn-gold:hover{background:var(--gold2);}
|
|
43
|
+
.btn-dark{background:#111;color:#888;border:1px solid #2a2a2a;padding:6px;border-radius:6px;cursor:pointer;font-family:inherit;font-size:0.78rem;width:100%;transition:0.15s;}
|
|
44
|
+
.btn-dark:hover{background:#1a1a1a;color:#ccc;}
|
|
45
|
+
.btn-owner-open{background:transparent;border:1px solid #2a2a2a;color:#555;padding:9px;border-radius:6px;cursor:pointer;font-family:'Bebas Neue',sans-serif;font-size:0.95rem;letter-spacing:2px;width:100%;transition:0.2s;}
|
|
46
|
+
.btn-owner-open:hover{border-color:#555;color:#888;}
|
|
47
|
+
.tools-box{background:var(--panel);border:1px solid var(--border);border-radius:8px;padding:12px;display:flex;flex-direction:column;gap:6px;}
|
|
48
|
+
.tools-box label{font-size:0.6rem;color:#444;letter-spacing:2px;text-transform:uppercase;}
|
|
49
|
+
.tools-box input{background:#000;border:1px solid #2a2a2a;color:var(--gold);padding:7px 10px;border-radius:5px;width:100%;outline:none;font-family:inherit;font-size:0.85rem;}
|
|
50
|
+
.tools-box input:focus{border-color:var(--gold);}
|
|
51
|
+
.store-header{font-family:'Bebas Neue',sans-serif;font-size:1.1rem;letter-spacing:3px;color:#444;padding:4px 0;border-bottom:1px solid #181818;margin-bottom:4px;}
|
|
52
|
+
.store-scroll{overflow-y:auto;display:flex;flex-direction:column;gap:5px;max-height:calc(100vh - 100px);padding-right:4px;}
|
|
53
|
+
.upg-btn{background:var(--panel);border:1px solid var(--border);border-radius:7px;padding:9px 12px;cursor:pointer;text-align:left;transition:0.12s;display:flex;justify-content:space-between;align-items:center;width:100%;}
|
|
54
|
+
.upg-btn:hover:not(:disabled){background:#161616;border-color:#3a3a3a;}
|
|
55
|
+
.upg-btn:disabled{opacity:0.32;cursor:not-allowed;}
|
|
56
|
+
.upg-btn.affordable{border-color:var(--gold);box-shadow:0 0 6px rgba(255,215,0,0.18);}
|
|
57
|
+
.upg-name{font-size:0.82rem;font-weight:700;color:#ddd;display:block;}
|
|
58
|
+
.upg-effect{font-size:0.68rem;color:var(--gold);}
|
|
59
|
+
.upg-owned{font-size:0.6rem;color:#444;}
|
|
60
|
+
.upg-right{text-align:right;flex-shrink:0;margin-left:8px;}
|
|
61
|
+
.upg-cost{font-size:0.72rem;color:#777;font-weight:600;}
|
|
62
|
+
.floating{position:fixed;color:var(--gold);font-family:'Bebas Neue',sans-serif;font-size:1.5rem;pointer-events:none;animation:floatUp 0.9s ease-out forwards;z-index:9999;text-shadow:0 2px 8px rgba(0,0,0,0.8);}
|
|
63
|
+
@keyframes floatUp{0%{opacity:1;transform:translateY(0);}100%{opacity:0;transform:translateY(-90px);}}
|
|
64
|
+
|
|
65
|
+
/* Toast notification */
|
|
66
|
+
#toast-container{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);z-index:99999;display:flex;flex-direction:column;gap:8px;align-items:center;pointer-events:none;}
|
|
67
|
+
.toast{background:#111;border:1px solid var(--gold);color:var(--gold);font-family:'Bebas Neue',sans-serif;font-size:1rem;letter-spacing:2px;padding:10px 22px;border-radius:8px;box-shadow:0 4px 24px rgba(0,0,0,0.7);opacity:0;transform:translateY(16px);transition:opacity 0.22s,transform 0.22s;white-space:nowrap;pointer-events:none;max-width:90vw;text-align:center;}
|
|
68
|
+
.toast.show{opacity:1;transform:translateY(0);}
|
|
69
|
+
.toast.error{border-color:var(--red);color:var(--red);}
|
|
70
|
+
|
|
71
|
+
/* Rebirth banner */
|
|
72
|
+
#rebirth-banner{display:none;position:fixed;top:0;left:0;width:100%;z-index:19999;background:linear-gradient(90deg,#000 0%,#1a1400 40%,#1a1400 60%,#000 100%);border-bottom:1px solid var(--gold);padding:14px 24px;text-align:center;}
|
|
73
|
+
#rebirth-banner.active{display:block;}
|
|
74
|
+
.rb-title{font-family:'Bebas Neue',sans-serif;font-size:1.6rem;color:var(--gold);letter-spacing:3px;margin-bottom:4px;}
|
|
75
|
+
.rb-body{font-size:0.85rem;color:#aaa;line-height:1.7;}
|
|
76
|
+
.rb-body span{color:var(--gold);}
|
|
77
|
+
.rb-close{position:absolute;top:10px;right:16px;background:none;border:none;color:#555;font-size:1.2rem;cursor:pointer;pointer-events:all;}
|
|
78
|
+
.rb-close:hover{color:#aaa;}
|
|
79
|
+
|
|
80
|
+
.overlay{display:none;position:fixed;inset:0;background:rgba(0,0,0,0.93);z-index:10000;justify-content:center;align-items:center;}
|
|
81
|
+
.overlay.active{display:flex;}
|
|
82
|
+
.modal-title{font-family:'Bebas Neue',sans-serif;font-size:2rem;color:var(--gold);text-align:center;letter-spacing:3px;margin-bottom:18px;}
|
|
83
|
+
.modal-close{position:absolute;top:10px;right:14px;background:none;border:none;color:#444;font-size:1.4rem;cursor:pointer;}
|
|
84
|
+
.modal-close:hover{color:#888;}
|
|
85
|
+
.owner-field{margin-bottom:10px;}
|
|
86
|
+
.owner-field label{display:block;font-size:0.6rem;color:#444;letter-spacing:2px;margin-bottom:4px;text-transform:uppercase;}
|
|
87
|
+
.owner-field input{background:#000;border:1px solid #2a2a2a;color:var(--gold);padding:10px;border-radius:6px;width:100%;font-family:inherit;font-size:1rem;outline:none;}
|
|
88
|
+
.owner-field input:focus{border-color:var(--gold);}
|
|
89
|
+
#ownerControls{display:none;flex-direction:column;gap:7px;margin-top:6px;}
|
|
90
|
+
#ownerControls.active{display:flex;}
|
|
91
|
+
.btn-oc{padding:10px;border-radius:6px;border:1px solid var(--gold);background:transparent;color:var(--gold);font-family:'Bebas Neue',sans-serif;font-size:1rem;letter-spacing:2px;cursor:pointer;transition:0.15s;width:100%;}
|
|
92
|
+
.btn-oc:hover{background:var(--gold);color:#000;}
|
|
93
|
+
.btn-oc.red{border-color:var(--red);color:var(--red);}
|
|
94
|
+
.btn-oc.red:hover{background:var(--red);color:#fff;}
|
|
95
|
+
.oc-section-title{font-family:'Bebas Neue',sans-serif;font-size:0.85rem;color:#666;letter-spacing:3px;text-align:center;padding:6px 0 2px;border-top:1px solid #1a1a1a;margin-top:6px;}
|
|
96
|
+
.oc-section-title:first-child{border-top:none;margin-top:0;}
|
|
97
|
+
.oc-label{font-size:0.62rem;color:#555;letter-spacing:2px;text-transform:uppercase;margin-top:8px;margin-bottom:3px;}
|
|
98
|
+
.oc-quick-grid{display:grid;grid-template-columns:1fr 1fr;gap:5px;margin-top:4px;}
|
|
99
|
+
.oc-quick-grid .btn-oc.sm{font-size:0.72rem;padding:7px 6px;letter-spacing:0.5px;}
|
|
100
|
+
#ownerErr{color:var(--red);font-size:0.75rem;text-align:center;margin-top:6px;min-height:18px;}
|
|
101
|
+
.modal-box{background:#080808;border:2px solid var(--gold);border-radius:14px;padding:28px;width:400px;max-width:95vw;position:relative;max-height:92vh;overflow-y:auto;}
|
|
102
|
+
.owner-input-row{display:flex;gap:6px;align-items:center;}
|
|
103
|
+
.oc-input{background:#000;border:1px solid #333;color:var(--gold);padding:8px 10px;border-radius:6px;flex:1;font-family:inherit;font-size:0.9rem;outline:none;min-width:0;}
|
|
104
|
+
.oc-input:focus{border-color:var(--gold);}
|
|
105
|
+
.oc-input::placeholder{color:#444;font-size:0.8rem;}
|
|
106
|
+
.btn-oc.sm{padding:8px 12px;font-size:0.8rem;letter-spacing:1px;flex-shrink:0;white-space:nowrap;}
|
|
107
|
+
#endgameOverlay{display:none;position:fixed;inset:0;background:rgba(0,0,0,0.97);z-index:20000;justify-content:center;align-items:center;flex-direction:column;text-align:center;padding:30px;overflow:hidden;}
|
|
108
|
+
#endgameOverlay.active{display:flex;}
|
|
109
|
+
.eg-title{font-family:'Bebas Neue',sans-serif;font-size:4.5rem;background:linear-gradient(135deg,var(--gold),#fff 40%,var(--gold));-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;letter-spacing:6px;animation:egPulse 2s infinite;line-height:1;}
|
|
110
|
+
@keyframes egPulse{0%,100%{filter:drop-shadow(0 0 20px rgba(255,215,0,0.6));}50%{filter:drop-shadow(0 0 60px rgba(255,215,0,1));}}
|
|
111
|
+
.eg-sub{font-size:1rem;color:#888;margin:12px 0;letter-spacing:2px;max-width:480px;}
|
|
112
|
+
.eg-stats{background:rgba(255,215,0,0.04);border:1px solid rgba(255,215,0,0.15);border-radius:12px;padding:18px 28px;margin:14px 0;display:flex;flex-direction:column;gap:8px;}
|
|
113
|
+
.eg-stat{font-family:'Bebas Neue',sans-serif;font-size:1.3rem;color:var(--gold);}
|
|
114
|
+
.eg-stat span{color:#fff;}
|
|
115
|
+
.confetti-p{position:absolute;border-radius:2px;animation:confettiFall linear infinite;}
|
|
116
|
+
@keyframes confettiFall{0%{transform:translateY(-20px) rotate(0deg);opacity:1;}100%{transform:translateY(110vh) rotate(720deg);opacity:0;}}
|
|
117
|
+
.btn-eg{font-family:'Bebas Neue',sans-serif;font-size:1.2rem;letter-spacing:2px;padding:14px 40px;border-radius:10px;border:2px solid var(--gold);background:transparent;color:var(--gold);cursor:pointer;margin-top:10px;transition:0.2s;}
|
|
118
|
+
.btn-eg:hover{background:var(--gold);color:#000;}
|
|
119
|
+
#rebirthBonusRow{font-size:0.72rem;color:#555;text-align:center;padding:3px 0;}
|
|
120
|
+
@media(max-width:800px){.wrapper{flex-direction:column;padding:8px;}.sidebar-left,.sidebar-right{width:100%;}.store-scroll{max-height:40vh;}}
|
|
121
|
+
</style>
|
|
122
|
+
</head>
|
|
123
|
+
<body>
|
|
124
|
+
<div class="scanline"></div>
|
|
125
|
+
<div class="bg-anim" id="bgAnim"></div>
|
|
126
|
+
<div id="toast-container"></div>
|
|
127
|
+
|
|
128
|
+
<!-- Rebirth result banner -->
|
|
129
|
+
<div id="rebirth-banner">
|
|
130
|
+
<button class="rb-close" onclick="document.getElementById('rebirth-banner').classList.remove('active')">✕</button>
|
|
131
|
+
<div class="rb-title" id="rb-title">✨ PRESTIGE COMPLETE</div>
|
|
132
|
+
<div class="rb-body" id="rb-body"></div>
|
|
133
|
+
</div>
|
|
134
|
+
|
|
135
|
+
<div class="overlay" id="ownerOverlay">
|
|
136
|
+
<div class="modal-box">
|
|
137
|
+
<button class="modal-close" onclick="closeOwner()">✕</button>
|
|
138
|
+
<div class="modal-title">⚠ OWNER ACCESS</div>
|
|
139
|
+
<div id="ownerLoginForm">
|
|
140
|
+
<div class="owner-field"><label>Username</label><input type="text" id="ownerUser" placeholder="owner"></div>
|
|
141
|
+
<div class="owner-field"><label>Password</label><input type="password" id="ownerPass" placeholder="••••••••" onkeydown="if(event.key==='Enter')ownerLogin()"></div>
|
|
142
|
+
<button class="btn-gold" onclick="ownerLogin()">LOGIN</button>
|
|
143
|
+
<div id="ownerErr"></div>
|
|
144
|
+
</div>
|
|
145
|
+
<div id="ownerControls">
|
|
146
|
+
<div class="oc-section-title">⚡ SET ANY STAT</div>
|
|
147
|
+
<div class="oc-label">Aura (current)</div>
|
|
148
|
+
<div class="owner-input-row">
|
|
149
|
+
<input type="number" id="ocAuraAmt" placeholder="e.g. 1000000" class="oc-input">
|
|
150
|
+
<button class="btn-oc sm" onclick="ownerGiveAura()">+ ADD</button>
|
|
151
|
+
<button class="btn-oc sm" onclick="ownerSetAura()">= SET</button>
|
|
152
|
+
</div>
|
|
153
|
+
<div class="oc-label">Click Power (aura per click)</div>
|
|
154
|
+
<div class="owner-input-row">
|
|
155
|
+
<input type="number" id="ocClickAmt" placeholder="e.g. 500000" class="oc-input">
|
|
156
|
+
<button class="btn-oc sm" onclick="ownerAddClick()">+ ADD</button>
|
|
157
|
+
<button class="btn-oc sm" onclick="ownerSetClick()">= SET</button>
|
|
158
|
+
</div>
|
|
159
|
+
<div class="oc-label">Auto Aura (per second)</div>
|
|
160
|
+
<div class="owner-input-row">
|
|
161
|
+
<input type="number" id="ocApsAmt" placeholder="e.g. 999999" class="oc-input">
|
|
162
|
+
<button class="btn-oc sm" onclick="ownerAddAps()">+ ADD</button>
|
|
163
|
+
<button class="btn-oc sm" onclick="ownerSetAps()">= SET</button>
|
|
164
|
+
</div>
|
|
165
|
+
<div class="oc-label">Rings</div>
|
|
166
|
+
<div class="owner-input-row">
|
|
167
|
+
<input type="number" id="ocRingsAmt" placeholder="e.g. 100" class="oc-input">
|
|
168
|
+
<button class="btn-oc sm" onclick="ownerAddRings()">+ ADD</button>
|
|
169
|
+
<button class="btn-oc sm" onclick="ownerSetRings()">= SET</button>
|
|
170
|
+
</div>
|
|
171
|
+
<div class="oc-label">Rebirth Bonus Click</div>
|
|
172
|
+
<div class="owner-input-row">
|
|
173
|
+
<input type="number" id="ocBonusAmt" placeholder="e.g. 1000000" class="oc-input">
|
|
174
|
+
<button class="btn-oc sm" onclick="ownerAddBonus()">+ ADD</button>
|
|
175
|
+
<button class="btn-oc sm" onclick="ownerSetBonus()">= SET</button>
|
|
176
|
+
</div>
|
|
177
|
+
<div class="oc-label">Prestige Rank</div>
|
|
178
|
+
<div class="owner-input-row">
|
|
179
|
+
<input type="number" id="ocPrestigeAmt" placeholder="e.g. 10" class="oc-input">
|
|
180
|
+
<button class="btn-oc sm" onclick="ownerAddPrestige()">+ ADD</button>
|
|
181
|
+
<button class="btn-oc sm" onclick="ownerSetPrestige()">= SET</button>
|
|
182
|
+
</div>
|
|
183
|
+
<div class="oc-label">Rebirth Cost</div>
|
|
184
|
+
<div class="owner-input-row">
|
|
185
|
+
<input type="number" id="ocRebirthCostAmt" placeholder="e.g. 1000000" class="oc-input">
|
|
186
|
+
<button class="btn-oc sm" onclick="ownerSetRebirthCost()">= SET COST</button>
|
|
187
|
+
</div>
|
|
188
|
+
<div class="oc-section-title" style="margin-top:10px;">🎮 QUICK ACTIONS</div>
|
|
189
|
+
<div class="oc-quick-grid">
|
|
190
|
+
<button class="btn-oc sm" onclick="ownerQ(1e6)">+1M Aura</button>
|
|
191
|
+
<button class="btn-oc sm" onclick="ownerQ(1e9)">+1B Aura</button>
|
|
192
|
+
<button class="btn-oc sm" onclick="ownerQ(1e12)">+1T Aura</button>
|
|
193
|
+
<button class="btn-oc sm" onclick="ownerQ(1e15)">+1Q Aura</button>
|
|
194
|
+
<button class="btn-oc sm" onclick="ownerQClick(1000)">+1K Click</button>
|
|
195
|
+
<button class="btn-oc sm" onclick="ownerQClick(1000000)">+1M Click</button>
|
|
196
|
+
<button class="btn-oc sm" onclick="ownerQAps(1000)">+1K Auto</button>
|
|
197
|
+
<button class="btn-oc sm" onclick="ownerQAps(1000000)">+1M Auto</button>
|
|
198
|
+
<button class="btn-oc sm" onclick="ownerQRings(10)">+10 Rings</button>
|
|
199
|
+
<button class="btn-oc sm" onclick="ownerQRings(100)">+100 Rings</button>
|
|
200
|
+
</div>
|
|
201
|
+
<div class="oc-section-title" style="margin-top:10px;">🔧 GAME TOOLS</div>
|
|
202
|
+
<button class="btn-oc" onclick="ownerInstantRebirth()">INSTANT REBIRTH ×20</button>
|
|
203
|
+
<button class="btn-oc" onclick="ownerUnlockAll()">UNLOCK ALL UPGRADES</button>
|
|
204
|
+
<button class="btn-oc" onclick="ownerMaxEverything()">MAX EVERYTHING</button>
|
|
205
|
+
<button class="btn-oc" onclick="ownerSkipToEnd()">TRIGGER ENDGAME</button>
|
|
206
|
+
<button class="btn-oc" onclick="ownerResetRebirthCost()">RESET REBIRTH COST</button>
|
|
207
|
+
<button class="btn-oc red" onclick="ownerReset()">⚠ HARD RESET</button>
|
|
208
|
+
<button class="btn-dark" onclick="closeOwner()" style="margin-top:4px;">CLOSE PANEL</button>
|
|
209
|
+
</div>
|
|
210
|
+
</div>
|
|
211
|
+
</div>
|
|
212
|
+
|
|
213
|
+
<div id="endgameOverlay">
|
|
214
|
+
<div class="eg-title">🏆 TRANSCENDED 🏆</div>
|
|
215
|
+
<div class="eg-sub">You have achieved ABSOLUTE GOAT STATUS.<br>LeBron's aura has consumed the entire universe.</div>
|
|
216
|
+
<div class="eg-stats">
|
|
217
|
+
<div class="eg-stat">Total Aura Generated: <span id="egAllTime">—</span></div>
|
|
218
|
+
<div class="eg-stat">Prestige Rank: <span id="egPrestige">—</span></div>
|
|
219
|
+
<div class="eg-stat">Rings Earned: <span id="egRings">—</span></div>
|
|
220
|
+
<div class="eg-stat">Permanent Bonus Click: <span id="egBonus">—</span></div>
|
|
221
|
+
</div>
|
|
222
|
+
<div style="font-size:0.8rem;color:#444;letter-spacing:2px;">YOU HAVE REACHED THE END OF THE GAME</div>
|
|
223
|
+
<button class="btn-eg" onclick="closeEndgame()">KEEP PLAYING (Infinite Mode)</button>
|
|
224
|
+
</div>
|
|
225
|
+
|
|
226
|
+
<div class="wrapper">
|
|
227
|
+
<div class="sidebar-left">
|
|
228
|
+
<div id="title">LeBron<br>Aura</div>
|
|
229
|
+
<div id="subtitle">Clicker · GOAT Edition</div>
|
|
230
|
+
<div class="stat-panel"><div class="stat-val" id="auraDisplay">0</div><div class="stat-label">Aura</div></div>
|
|
231
|
+
<div class="stat-panel"><div class="stat-val" id="apsDisplay">0</div><div class="stat-label">Auto Aura / Sec</div></div>
|
|
232
|
+
<div class="stat-panel"><div class="stat-val" id="clickDisplay">1</div><div class="stat-label">Aura / Click</div></div>
|
|
233
|
+
<div class="prestige-info">
|
|
234
|
+
Rings: <span id="ringsVal">0</span> | Prestige: <span id="prestigeVal">0</span><br>
|
|
235
|
+
Aura Boost: <span id="boostVal">+0%</span><br>
|
|
236
|
+
Rebirth Bonus: <span id="bonusClickVal">+0</span>/click
|
|
237
|
+
</div>
|
|
238
|
+
<button id="rebirthBtn" onclick="doRebirth()">REBIRTH</button>
|
|
239
|
+
<div id="rebirthBonusRow">Rebirth now → +<span id="previewBonus">0</span> permanent click bonus</div>
|
|
240
|
+
<div class="tools-box">
|
|
241
|
+
<label>Save / Locker Codes</label>
|
|
242
|
+
<input type="text" id="lockerInput" placeholder="Code or save string...">
|
|
243
|
+
<button class="btn-gold" onclick="handleInput()">REDEEM / LOAD</button>
|
|
244
|
+
<button class="btn-dark" onclick="exportSave()">COPY SAVE CODE</button>
|
|
245
|
+
</div>
|
|
246
|
+
<button class="btn-owner-open" onclick="openOwner()">⚙ OWNER PANEL</button>
|
|
247
|
+
</div>
|
|
248
|
+
|
|
249
|
+
<div class="main-area">
|
|
250
|
+
<div style="height:14px;"></div>
|
|
251
|
+
<div id="lebron-wrap" onclick="clickLebron(event)">
|
|
252
|
+
<img id="lebron" src="https://th.bing.com/th/id/OIP.s4ihfuhwtsPEFwJ0XAXD2gHaE8?w=231&h=180&c=7&r=0&o=7&dpr=2&pid=1.7&rm=3" alt="LeBron">
|
|
253
|
+
</div>
|
|
254
|
+
<div style="font-size:0.62rem;color:#222;letter-spacing:3px;margin-top:6px;text-transform:uppercase;">Click to gain Aura</div>
|
|
255
|
+
<div style="margin-top:24px;background:rgba(255,215,0,0.04);border:1px solid #1a1a1a;border-radius:10px;padding:14px 18px;max-width:220px;text-align:center;">
|
|
256
|
+
<div style="font-family:'Bebas Neue';font-size:0.85rem;color:#444;letter-spacing:2px;margin-bottom:6px;">ENDGAME GOAL</div>
|
|
257
|
+
<div style="font-size:0.78rem;color:#555;line-height:1.6;">Reach <span style="color:#666">1 Quintillion</span> all-time aura to see the true ending</div>
|
|
258
|
+
<div style="margin-top:8px;font-family:'Bebas Neue';font-size:1rem;color:#3a3a3a;" id="endgameProgress">0%</div>
|
|
259
|
+
</div>
|
|
260
|
+
</div>
|
|
261
|
+
|
|
262
|
+
<div class="sidebar-right">
|
|
263
|
+
<div class="store-header">🏀 Upgrades</div>
|
|
264
|
+
<div class="store-scroll" id="storeEl"></div>
|
|
265
|
+
</div>
|
|
266
|
+
</div>
|
|
267
|
+
|
|
268
|
+
<script>
|
|
269
|
+
const SAVE_KEY = 'lebronAura_v4';
|
|
270
|
+
const ENDGAME_AT = 1e18;
|
|
271
|
+
const MAX_SAFE = 1e300;
|
|
272
|
+
|
|
273
|
+
// ── Toast system ─────────────────────────────────────────────────────────────
|
|
274
|
+
function toast(msg, isError) {
|
|
275
|
+
const c = document.getElementById('toast-container');
|
|
276
|
+
const t = document.createElement('div');
|
|
277
|
+
t.className = 'toast' + (isError ? ' error' : '');
|
|
278
|
+
t.textContent = msg;
|
|
279
|
+
c.appendChild(t);
|
|
280
|
+
requestAnimationFrame(() => { requestAnimationFrame(() => { t.classList.add('show'); }); });
|
|
281
|
+
setTimeout(() => {
|
|
282
|
+
t.classList.remove('show');
|
|
283
|
+
setTimeout(() => t.remove(), 300);
|
|
284
|
+
}, 2800);
|
|
285
|
+
}
|
|
286
|
+
function toastErr(msg) { toast(msg, true); }
|
|
287
|
+
|
|
288
|
+
// ── Rebirth banner ────────────────────────────────────────────────────────────
|
|
289
|
+
function showRebirthBanner(rank, bonusGain, newRings, boost) {
|
|
290
|
+
document.getElementById('rb-title').textContent = '✨ PRESTIGE #' + rank + ' COMPLETE';
|
|
291
|
+
document.getElementById('rb-body').innerHTML =
|
|
292
|
+
'+<span>' + fmt(bonusGain) + '</span> permanent bonus click power! ' +
|
|
293
|
+
'+<span>' + newRings + '</span> rings — Aura Boost: <span>+' + Math.round(boost * 100) + '%</span>';
|
|
294
|
+
const b = document.getElementById('rebirth-banner');
|
|
295
|
+
b.classList.add('active');
|
|
296
|
+
setTimeout(() => b.classList.remove('active'), 5000);
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
// ── Safe number helpers ──────────────────────────────────────────────────────
|
|
300
|
+
function safeNum(v, fallback) {
|
|
301
|
+
if (fallback === undefined) fallback = 0;
|
|
302
|
+
if (v === null || v === undefined) return fallback;
|
|
303
|
+
const n = Number(v);
|
|
304
|
+
if (!isFinite(n) || isNaN(n)) return fallback;
|
|
305
|
+
return Math.min(n, MAX_SAFE);
|
|
306
|
+
}
|
|
307
|
+
function safeInt(v, fallback) {
|
|
308
|
+
if (fallback === undefined) fallback = 0;
|
|
309
|
+
const n = safeNum(v, fallback);
|
|
310
|
+
return Math.floor(n);
|
|
311
|
+
}
|
|
312
|
+
function sanitizeState(s) {
|
|
313
|
+
if (!s || typeof s !== 'object') return null;
|
|
314
|
+
s.aura = safeNum(s.aura, 0);
|
|
315
|
+
s.clickPower = safeNum(s.clickPower, 1);
|
|
316
|
+
s.aps = safeNum(s.aps, 0);
|
|
317
|
+
s.rings = safeInt(s.rings, 0);
|
|
318
|
+
s.ringBoost = safeNum(s.ringBoost, 0);
|
|
319
|
+
s.prestigeRank = safeInt(s.prestigeRank, 0);
|
|
320
|
+
s.rebirthCost = safeNum(s.rebirthCost, 1000000);
|
|
321
|
+
if (s.rebirthCost < 1) s.rebirthCost = 1000000;
|
|
322
|
+
s.allTimeAura = safeNum(s.allTimeAura, 0);
|
|
323
|
+
s.rebirthBonusClick= safeNum(s.rebirthBonusClick, 0);
|
|
324
|
+
s.endgameShown = !!s.endgameShown;
|
|
325
|
+
if (Array.isArray(s.state)) {
|
|
326
|
+
s.state = s.state.map(item => ({
|
|
327
|
+
id: safeInt(item.id, 0),
|
|
328
|
+
cost: safeNum(item.cost, 0),
|
|
329
|
+
owned: safeInt(item.owned, 0)
|
|
330
|
+
}));
|
|
331
|
+
}
|
|
332
|
+
return s;
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
let aura=0, clickPower=1, aps=0;
|
|
336
|
+
let rings=0, ringBoost=0, prestigeRank=0;
|
|
337
|
+
let rebirthCost=1000000, allTimeAura=0;
|
|
338
|
+
let rebirthBonusClick=0;
|
|
339
|
+
let endgameShown=false;
|
|
340
|
+
|
|
341
|
+
const UPGRADES=[
|
|
342
|
+
{id:1, name:"Peewee Basketball", type:"click", power:1, baseCost:10, unlockAt:0},
|
|
343
|
+
{id:2, name:"Park Court Grind", type:"aps", power:1, baseCost:15, unlockAt:0},
|
|
344
|
+
{id:3, name:"Middle School Hype", type:"click", power:1, baseCost:22, unlockAt:5},
|
|
345
|
+
{id:4, name:"Twitter Mention", type:"aps", power:1, baseCost:28, unlockAt:8},
|
|
346
|
+
{id:5, name:"Local Sports Blog", type:"click", power:2, baseCost:45, unlockAt:15},
|
|
347
|
+
{id:6, name:"Youth Camp Star", type:"aps", power:2, baseCost:60, unlockAt:22},
|
|
348
|
+
{id:7, name:"Pickup Game Win", type:"click", power:2, baseCost:80, unlockAt:32},
|
|
349
|
+
{id:8, name:"Driveway Drills", type:"aps", power:2, baseCost:100, unlockAt:45},
|
|
350
|
+
{id:9, name:"High School Hype", type:"click", power:3, baseCost:130, unlockAt:60},
|
|
351
|
+
{id:10, name:"First ESPN Mention", type:"aps", power:3, baseCost:170, unlockAt:80},
|
|
352
|
+
{id:11, name:"Prep Phenom", type:"click", power:4, baseCost:230, unlockAt:120},
|
|
353
|
+
{id:12, name:"State Champion", type:"aps", power:4, baseCost:310, unlockAt:160},
|
|
354
|
+
{id:13, name:"Recruiting Visit", type:"click", power:6, baseCost:420, unlockAt:220},
|
|
355
|
+
{id:14, name:"Sports Illustrated Cover", type:"aps", power:6, baseCost:570, unlockAt:300},
|
|
356
|
+
{id:15, name:"NBA Draft Buzz", type:"click", power:8, baseCost:780, unlockAt:420},
|
|
357
|
+
{id:16, name:"Nike Handshake", type:"aps", power:8, baseCost:1000, unlockAt:580},
|
|
358
|
+
{id:17, name:"#1 Draft Pick", type:"click", power:11, baseCost:1400, unlockAt:800},
|
|
359
|
+
{id:18, name:"Rookie Camp", type:"aps", power:11, baseCost:1800, unlockAt:1050},
|
|
360
|
+
{id:19, name:"First NBA Game", type:"click", power:15, baseCost:2400, unlockAt:1350},
|
|
361
|
+
{id:20, name:"Rookie of the Year Race", type:"aps", power:15, baseCost:3100, unlockAt:1800},
|
|
362
|
+
{id:21, name:"First All-Star Nod", type:"click", power:20, baseCost:4000, unlockAt:2500},
|
|
363
|
+
{id:22, name:"Nike Contract Signed", type:"aps", power:20, baseCost:5200, unlockAt:3300},
|
|
364
|
+
{id:23, name:"Olympic Dream Team", type:"click", power:28, baseCost:6800, unlockAt:4400},
|
|
365
|
+
{id:24, name:"ESPN Top 10 Play", type:"aps", power:28, baseCost:8800, unlockAt:5800},
|
|
366
|
+
{id:25, name:"First Playoff Run", type:"click", power:38, baseCost:11500, unlockAt:7500},
|
|
367
|
+
{id:26, name:"All-Star Game MVP", type:"aps", power:38, baseCost:15000, unlockAt:9800},
|
|
368
|
+
{id:27, name:"MVP Voting Contender", type:"click", power:52, baseCost:20000, unlockAt:13000},
|
|
369
|
+
{id:28, name:"First Scoring Title", type:"aps", power:52, baseCost:26000, unlockAt:17000},
|
|
370
|
+
{id:29, name:"Twitter Army Grows", type:"click", power:70, baseCost:34000, unlockAt:22000},
|
|
371
|
+
{id:30, name:"Space Jam Cameo", type:"aps", power:70, baseCost:44000, unlockAt:28000},
|
|
372
|
+
{id:31, name:"MVP Trophy", type:"click", power:95, baseCost:58000, unlockAt:38000},
|
|
373
|
+
{id:32, name:"Clutch Gene Activated", type:"aps", power:95, baseCost:75000, unlockAt:50000},
|
|
374
|
+
{id:33, name:"Finals Appearance", type:"click", power:130, baseCost:98000, unlockAt:65000},
|
|
375
|
+
{id:34, name:"Championship Ring #1", type:"aps", power:130, baseCost:130000, unlockAt:85000},
|
|
376
|
+
{id:35, name:"Finals MVP", type:"click", power:175, baseCost:170000, unlockAt:110000},
|
|
377
|
+
{id:36, name:"Legacy Boost", type:"aps", power:175, baseCost:220000, unlockAt:145000},
|
|
378
|
+
{id:37, name:"Banana Boat Crew", type:"click", power:235, baseCost:290000, unlockAt:190000},
|
|
379
|
+
{id:38, name:"The Decision Era", type:"aps", power:235, baseCost:380000, unlockAt:250000},
|
|
380
|
+
{id:39, name:"South Beach Heat", type:"click", power:315, baseCost:500000, unlockAt:330000},
|
|
381
|
+
{id:40, name:"Back-to-Back Rings", type:"aps", power:315, baseCost:650000, unlockAt:430000},
|
|
382
|
+
{id:41, name:"Return to Cleveland", type:"click", power:425, baseCost:860000, unlockAt:570000},
|
|
383
|
+
{id:42, name:"Ring for Cleveland", type:"aps", power:425, baseCost:1120000, unlockAt:740000},
|
|
384
|
+
{id:43, name:"Chase Jordan", type:"click", power:570, baseCost:1480000, unlockAt:980000},
|
|
385
|
+
{id:44, name:"All-Time Scorer Race", type:"aps", power:570, baseCost:1950000, unlockAt:1300000},
|
|
386
|
+
{id:45, name:"LA Laker", type:"click", power:760, baseCost:2600000, unlockAt:1700000},
|
|
387
|
+
{id:46, name:"Youngest Scorer Ever", type:"aps", power:760, baseCost:3400000, unlockAt:2200000},
|
|
388
|
+
{id:47, name:"Son in the League", type:"click", power:1020, baseCost:4500000, unlockAt:2900000},
|
|
389
|
+
{id:48, name:"Billionaire Athlete", type:"aps", power:1020, baseCost:5900000, unlockAt:3900000},
|
|
390
|
+
{id:49, name:"I Promise School", type:"click", power:1350, baseCost:7800000, unlockAt:5200000},
|
|
391
|
+
{id:50, name:"Media Empire Grows", type:"aps", power:1350, baseCost:10200000, unlockAt:6800000},
|
|
392
|
+
{id:51, name:"Court Vision Level 100", type:"click", power:1800, baseCost:13500000, unlockAt:9000000},
|
|
393
|
+
{id:52, name:"SuperTeam Architect", type:"aps", power:1800, baseCost:17800000, unlockAt:12000000},
|
|
394
|
+
{id:53, name:"All-Time Assists Leader", type:"click", power:2400, baseCost:23500000, unlockAt:16000000},
|
|
395
|
+
{id:54, name:"Playoff Points Record", type:"aps", power:2400, baseCost:31000000, unlockAt:21000000},
|
|
396
|
+
{id:55, name:"Bronze Olympic Gold", type:"click", power:3200, baseCost:41000000, unlockAt:28000000},
|
|
397
|
+
{id:56, name:"GOAT Debate Winner", type:"aps", power:3200, baseCost:54000000, unlockAt:37000000},
|
|
398
|
+
{id:57, name:"Ring Number 5", type:"click", power:4200, baseCost:71000000, unlockAt:49000000},
|
|
399
|
+
{id:58, name:"Global Brand", type:"aps", power:4200, baseCost:94000000, unlockAt:65000000},
|
|
400
|
+
{id:59, name:"Statue Outside Arena", type:"click", power:5600, baseCost:124000000, unlockAt:86000000},
|
|
401
|
+
{id:60, name:"Hall of Fame Lock", type:"aps", power:5600, baseCost:163000000, unlockAt:113000000},
|
|
402
|
+
{id:61, name:"Lifetime Nike Deal", type:"click", power:7500, baseCost:215000000, unlockAt:150000000},
|
|
403
|
+
{id:62, name:"LeGM Mode Activated", type:"aps", power:7500, baseCost:285000000, unlockAt:200000000},
|
|
404
|
+
{id:63, name:"NBA Team Owner", type:"click", power:10000, baseCost:375000000, unlockAt:265000000},
|
|
405
|
+
{id:64, name:"Own the Media Cycle", type:"aps", power:10000, baseCost:500000000, unlockAt:350000000},
|
|
406
|
+
{id:65, name:"Scoring Record Breaks MJ", type:"click", power:13500, baseCost:660000000, unlockAt:460000000},
|
|
407
|
+
{id:66, name:"GOAT Certified", type:"aps", power:13500, baseCost:870000000, unlockAt:610000000},
|
|
408
|
+
{id:67, name:"Children in the League", type:"click", power:18000, baseCost:1150000000, unlockAt:810000000},
|
|
409
|
+
{id:68, name:"Aura Goes Viral", type:"aps", power:18000, baseCost:1520000000, unlockAt:1070000000},
|
|
410
|
+
{id:69, name:"Space Jam Multiverse", type:"click", power:24000, baseCost:2000000000, unlockAt:1400000000},
|
|
411
|
+
{id:70, name:"Father Time Defied", type:"aps", power:24000, baseCost:2650000000, unlockAt:1850000000},
|
|
412
|
+
{id:71, name:"Inter-Continental Tour", type:"click", power:32000, baseCost:3500000000, unlockAt:2450000000},
|
|
413
|
+
{id:72, name:"Trillion Dollar Brand", type:"aps", power:32000, baseCost:4600000000, unlockAt:3200000000},
|
|
414
|
+
{id:73, name:"Chosen One Fulfilled", type:"click", power:43000, baseCost:6100000000, unlockAt:4300000000},
|
|
415
|
+
{id:74, name:"Aura Singularity", type:"aps", power:43000, baseCost:8000000000, unlockAt:5600000000},
|
|
416
|
+
{id:75, name:"Generational Icon", type:"click", power:57000, baseCost:10600000000, unlockAt:7400000000},
|
|
417
|
+
{id:76, name:"Perpetual Legacy", type:"aps", power:57000, baseCost:14000000000, unlockAt:9800000000},
|
|
418
|
+
{id:77, name:"Aura Resonance", type:"click", power:76000, baseCost:18500000000, unlockAt:13000000000},
|
|
419
|
+
{id:78, name:"Omniverse Fame", type:"aps", power:76000, baseCost:24500000000, unlockAt:17000000000},
|
|
420
|
+
{id:79, name:"DNA of Basketball", type:"click", power:100000, baseCost:32000000000, unlockAt:22500000000},
|
|
421
|
+
{id:80, name:"Aura Overload", type:"aps", power:100000, baseCost:42000000000, unlockAt:29500000000},
|
|
422
|
+
{id:81, name:"Quantum Crossover", type:"click", power:135000, baseCost:56000000000, unlockAt:39000000000},
|
|
423
|
+
{id:82, name:"Interdimensional Dunk", type:"aps", power:135000, baseCost:74000000000, unlockAt:51000000000},
|
|
424
|
+
{id:83, name:"Reality Warp", type:"click", power:180000, baseCost:97000000000, unlockAt:68000000000},
|
|
425
|
+
{id:84, name:"Time Stops for LeBron", type:"aps", power:180000, baseCost:128000000000, unlockAt:89000000000},
|
|
426
|
+
{id:85, name:"Multiverse Rings", type:"click", power:240000, baseCost:169000000000, unlockAt:118000000000},
|
|
427
|
+
{id:86, name:"Universal MVP", type:"aps", power:240000, baseCost:223000000000, unlockAt:156000000000},
|
|
428
|
+
{id:87, name:"Cosmic Court Vision", type:"click", power:320000, baseCost:295000000000, unlockAt:206000000000},
|
|
429
|
+
{id:88, name:"Galaxy Aura Field", type:"aps", power:320000, baseCost:390000000000, unlockAt:273000000000},
|
|
430
|
+
{id:89, name:"Star Cluster Dribble", type:"click", power:420000, baseCost:514000000000, unlockAt:360000000000},
|
|
431
|
+
{id:90, name:"Black Hole Crossover", type:"aps", power:420000, baseCost:680000000000, unlockAt:476000000000},
|
|
432
|
+
{id:91, name:"Big Bang Layup", type:"click", power:560000, baseCost:900000000000, unlockAt:630000000000},
|
|
433
|
+
{id:92, name:"Infinite Spin Move", type:"aps", power:560000, baseCost:1190000000000,unlockAt:833000000000},
|
|
434
|
+
{id:93, name:"Omniscient Court Sense", type:"click", power:740000, baseCost:1570000000000,unlockAt:1100000000000},
|
|
435
|
+
{id:94, name:"Aura Transcendence", type:"aps", power:740000, baseCost:2070000000000,unlockAt:1450000000000},
|
|
436
|
+
{id:95, name:"The Chosen Universe", type:"click", power:860000, baseCost:2740000000000,unlockAt:1920000000000},
|
|
437
|
+
{id:96, name:"Beyond the Simulation", type:"aps", power:860000, baseCost:3610000000000,unlockAt:2530000000000},
|
|
438
|
+
{id:97, name:"Omega Dunk", type:"click", power:940000, baseCost:4770000000000,unlockAt:3340000000000},
|
|
439
|
+
{id:98, name:"Eternal Aura Field", type:"aps", power:940000, baseCost:6300000000000,unlockAt:4410000000000},
|
|
440
|
+
{id:99, name:"LeBron Ascended", type:"click", power:1000000, baseCost:9000000000000,unlockAt:6300000000000},
|
|
441
|
+
{id:100,name:"Absolute GOAT Mode", type:"aps", power:1000000, baseCost:12000000000000,unlockAt:8400000000000},
|
|
442
|
+
{id:101,name:"⭐ MAXIMUM AURA (CLICK)", type:"click", power:10000000,baseCost:20000000000000,unlockAt:14000000000000},
|
|
443
|
+
{id:102,name:"⭐ MAXIMUM AURA (APS)", type:"aps", power:10000000,baseCost:30000000000000,unlockAt:21000000000000},
|
|
444
|
+
{id:103,name:" way to op, you cant offord this LOSER", type:"aps", power:1000000000000,baseCost:30000000000000000,unlockAt:2100000000000000000},
|
|
445
|
+
|
|
446
|
+
];
|
|
447
|
+
|
|
448
|
+
let state=UPGRADES.map(u=>({id:u.id,cost:u.baseCost,owned:0}));
|
|
449
|
+
const getState=id=>state.find(s=>s.id===id);
|
|
450
|
+
|
|
451
|
+
function fmt(n){
|
|
452
|
+
n = safeNum(n, 0);
|
|
453
|
+
if(n>=1e18)return(n/1e18).toFixed(2)+"Qi";
|
|
454
|
+
if(n>=1e15)return(n/1e15).toFixed(2)+"Q";
|
|
455
|
+
if(n>=1e12)return(n/1e12).toFixed(2)+"T";
|
|
456
|
+
if(n>=1e9)return(n/1e9).toFixed(2)+"B";
|
|
457
|
+
if(n>=1e6)return(n/1e6).toFixed(2)+"M";
|
|
458
|
+
if(n>=1e3)return(n/1e3).toFixed(2)+"K";
|
|
459
|
+
return Math.floor(n).toLocaleString();
|
|
460
|
+
}
|
|
461
|
+
|
|
462
|
+
function effClick(){
|
|
463
|
+
const v = Math.floor((clickPower+rebirthBonusClick)*(1+ringBoost));
|
|
464
|
+
return safeNum(v, 1);
|
|
465
|
+
}
|
|
466
|
+
function effAps(){
|
|
467
|
+
const v = aps*(1+ringBoost);
|
|
468
|
+
return safeNum(v, 0);
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
function clampVars(){
|
|
472
|
+
aura = safeNum(aura, 0);
|
|
473
|
+
clickPower = safeNum(clickPower, 1);
|
|
474
|
+
aps = safeNum(aps, 0);
|
|
475
|
+
rings = safeInt(rings, 0);
|
|
476
|
+
ringBoost = safeNum(ringBoost, 0);
|
|
477
|
+
prestigeRank = safeInt(prestigeRank, 0);
|
|
478
|
+
rebirthCost = safeNum(rebirthCost, 1000000);
|
|
479
|
+
if (!isFinite(rebirthCost) || rebirthCost < 1) rebirthCost = 1000000;
|
|
480
|
+
allTimeAura = safeNum(allTimeAura, 0);
|
|
481
|
+
rebirthBonusClick = safeNum(rebirthBonusClick, 0);
|
|
482
|
+
}
|
|
483
|
+
|
|
484
|
+
function updateUI(){
|
|
485
|
+
clampVars();
|
|
486
|
+
document.getElementById('auraDisplay').textContent=fmt(aura);
|
|
487
|
+
document.getElementById('apsDisplay').textContent=fmt(effAps());
|
|
488
|
+
document.getElementById('clickDisplay').textContent=fmt(effClick());
|
|
489
|
+
document.getElementById('ringsVal').textContent=rings;
|
|
490
|
+
document.getElementById('prestigeVal').textContent=prestigeRank;
|
|
491
|
+
document.getElementById('boostVal').textContent='+'+Math.round(ringBoost*100)+'%';
|
|
492
|
+
document.getElementById('bonusClickVal').textContent=fmt(rebirthBonusClick);
|
|
493
|
+
|
|
494
|
+
const preview=safeInt(aura/1000000, 0);
|
|
495
|
+
document.getElementById('previewBonus').textContent=fmt(preview);
|
|
496
|
+
|
|
497
|
+
const rb=document.getElementById('rebirthBtn');
|
|
498
|
+
rb.classList.toggle('ready',aura>=rebirthCost);
|
|
499
|
+
rb.textContent='REBIRTH ('+fmt(rebirthCost)+')';
|
|
500
|
+
|
|
501
|
+
const pct=Math.min(100,(allTimeAura/ENDGAME_AT)*100);
|
|
502
|
+
const pctSafe = safeNum(pct, 0);
|
|
503
|
+
document.getElementById('endgameProgress').textContent=pctSafe<0.01?'<0.01%':pctSafe.toFixed(pctSafe<1?4:2)+'%';
|
|
504
|
+
|
|
505
|
+
if(!endgameShown&&allTimeAura>=ENDGAME_AT)triggerEndgame();
|
|
506
|
+
renderStore();
|
|
507
|
+
}
|
|
508
|
+
|
|
509
|
+
function renderStore(){
|
|
510
|
+
const el=document.getElementById('storeEl');
|
|
511
|
+
const visible=UPGRADES.filter(u=>allTimeAura>=u.unlockAt);
|
|
512
|
+
const firstBtn=el.querySelector('.upg-btn');
|
|
513
|
+
const needsRebuild=el.children.length!==visible.length||(firstBtn&&firstBtn.id!=='upg-'+visible[0]?.id);
|
|
514
|
+
if(needsRebuild){
|
|
515
|
+
el.innerHTML='';
|
|
516
|
+
visible.forEach(upg=>{
|
|
517
|
+
const s=getState(upg.id);
|
|
518
|
+
const btn=document.createElement('button');
|
|
519
|
+
btn.className='upg-btn';
|
|
520
|
+
btn.id='upg-'+upg.id;
|
|
521
|
+
const effect=upg.type==='click'?'+'+fmt(upg.power)+' per click':'+'+fmt(upg.power)+' auto aura/sec';
|
|
522
|
+
btn.innerHTML=`<div class="upg-left"><span class="upg-name">${upg.name}</span><span class="upg-effect">${effect}</span><span class="upg-owned" id="upg-owned-${upg.id}">Owned: ${s.owned}</span></div><div class="upg-right"><span class="upg-cost" id="upg-cost-${upg.id}">${fmt(s.cost)}</span></div>`;
|
|
523
|
+
btn.onclick=()=>buyUpgrade(upg.id);
|
|
524
|
+
el.appendChild(btn);
|
|
525
|
+
});
|
|
526
|
+
}
|
|
527
|
+
visible.forEach(upg=>{
|
|
528
|
+
const s=getState(upg.id);
|
|
529
|
+
const btn=document.getElementById('upg-'+upg.id);
|
|
530
|
+
if(!btn)return;
|
|
531
|
+
const affordable=aura>=s.cost;
|
|
532
|
+
btn.disabled=!affordable;
|
|
533
|
+
btn.classList.toggle('affordable',affordable);
|
|
534
|
+
const ownEl=document.getElementById('upg-owned-'+upg.id);
|
|
535
|
+
const costEl=document.getElementById('upg-cost-'+upg.id);
|
|
536
|
+
if(ownEl)ownEl.textContent='Owned: '+s.owned;
|
|
537
|
+
if(costEl)costEl.textContent=fmt(s.cost);
|
|
538
|
+
});
|
|
539
|
+
}
|
|
540
|
+
|
|
541
|
+
function clickLebron(e){
|
|
542
|
+
const gain=effClick();
|
|
543
|
+
aura+=gain; allTimeAura+=gain;
|
|
544
|
+
clampVars();
|
|
545
|
+
spawnFloat(e.clientX,e.clientY,'+'+fmt(gain));
|
|
546
|
+
const wrap=document.getElementById('lebron-wrap');
|
|
547
|
+
const r=document.createElement('div');r.className='click-ripple';
|
|
548
|
+
wrap.appendChild(r);setTimeout(()=>r.remove(),500);
|
|
549
|
+
updateUI();
|
|
550
|
+
}
|
|
551
|
+
|
|
552
|
+
function spawnFloat(x,y,txt){
|
|
553
|
+
const d=document.createElement('div');d.className='floating';d.textContent=txt;
|
|
554
|
+
d.style.left=x+'px';d.style.top=y+'px';
|
|
555
|
+
document.body.appendChild(d);setTimeout(()=>d.remove(),900);
|
|
556
|
+
}
|
|
557
|
+
|
|
558
|
+
function buyUpgrade(id){
|
|
559
|
+
const upg=UPGRADES.find(u=>u.id===id);
|
|
560
|
+
const s=getState(id);
|
|
561
|
+
if(aura<s.cost)return;
|
|
562
|
+
aura-=s.cost; s.owned++;
|
|
563
|
+
if(upg.type==='click') clickPower+=upg.power;
|
|
564
|
+
else aps+=upg.power;
|
|
565
|
+
const newCost = Math.floor(s.cost*1.18);
|
|
566
|
+
s.cost = safeNum(newCost, s.cost);
|
|
567
|
+
if (!isFinite(s.cost) || s.cost <= 0) s.cost = s.cost || upg.baseCost;
|
|
568
|
+
clampVars();
|
|
569
|
+
updateUI(); saveGame();
|
|
570
|
+
}
|
|
571
|
+
|
|
572
|
+
function doRebirth(){
|
|
573
|
+
if(aura<rebirthCost)return;
|
|
574
|
+
const bonusGain=safeInt(aura/1000000, 0);
|
|
575
|
+
rebirthBonusClick+=bonusGain;
|
|
576
|
+
const newRings=safeInt(aura/rebirthCost, 0);
|
|
577
|
+
rings+=newRings;
|
|
578
|
+
ringBoost=rings*0.10;
|
|
579
|
+
prestigeRank++;
|
|
580
|
+
aura=0; clickPower=1; aps=0;
|
|
581
|
+
state=UPGRADES.map(u=>({id:u.id,cost:u.baseCost,owned:0}));
|
|
582
|
+
const nextCost = Math.floor(rebirthCost*2.8);
|
|
583
|
+
rebirthCost = isFinite(nextCost) && nextCost > 0 ? nextCost : rebirthCost;
|
|
584
|
+
clampVars();
|
|
585
|
+
document.getElementById('storeEl').innerHTML='';
|
|
586
|
+
updateUI(); saveGame();
|
|
587
|
+
showRebirthBanner(prestigeRank, bonusGain, newRings, ringBoost);
|
|
588
|
+
}
|
|
589
|
+
|
|
590
|
+
function triggerEndgame(){
|
|
591
|
+
endgameShown=true;
|
|
592
|
+
document.getElementById('egAllTime').textContent=fmt(allTimeAura);
|
|
593
|
+
document.getElementById('egPrestige').textContent=prestigeRank;
|
|
594
|
+
document.getElementById('egRings').textContent=rings;
|
|
595
|
+
document.getElementById('egBonus').textContent=fmt(rebirthBonusClick);
|
|
596
|
+
const eo=document.getElementById('endgameOverlay');
|
|
597
|
+
const colors=['#FFD700','#FFF','#FF6B6B','#4ecdc4','#a29bfe','#fd79a8'];
|
|
598
|
+
for(let i=0;i<80;i++){
|
|
599
|
+
const c=document.createElement('div');c.className='confetti-p';
|
|
600
|
+
c.style.cssText=`left:${Math.random()*100}%;top:${-5+Math.random()*5}%;background:${colors[Math.floor(Math.random()*colors.length)]};animation-duration:${3+Math.random()*4}s;animation-delay:${Math.random()*3}s;width:${6+Math.random()*10}px;height:${6+Math.random()*10}px;`;
|
|
601
|
+
eo.appendChild(c);
|
|
602
|
+
}
|
|
603
|
+
eo.classList.add('active');
|
|
604
|
+
saveGame();
|
|
605
|
+
}
|
|
606
|
+
function closeEndgame(){document.getElementById('endgameOverlay').classList.remove('active');}
|
|
607
|
+
|
|
608
|
+
function saveGame(){
|
|
609
|
+
clampVars();
|
|
610
|
+
const data={aura,clickPower,aps,rings,ringBoost,prestigeRank,rebirthCost,allTimeAura,rebirthBonusClick,endgameShown,state};
|
|
611
|
+
try { localStorage.setItem(SAVE_KEY,JSON.stringify(data)); } catch(e) {}
|
|
612
|
+
}
|
|
613
|
+
|
|
614
|
+
function loadState(saved){
|
|
615
|
+
if(!saved)return;
|
|
616
|
+
const s = sanitizeState(saved);
|
|
617
|
+
if (!s) return;
|
|
618
|
+
aura=s.aura; clickPower=s.clickPower; aps=s.aps;
|
|
619
|
+
rings=s.rings; ringBoost=s.ringBoost;
|
|
620
|
+
prestigeRank=s.prestigeRank; rebirthCost=s.rebirthCost;
|
|
621
|
+
allTimeAura=s.allTimeAura; rebirthBonusClick=s.rebirthBonusClick;
|
|
622
|
+
endgameShown=s.endgameShown;
|
|
623
|
+
if(s.state) state=s.state;
|
|
624
|
+
clampVars();
|
|
625
|
+
updateUI();
|
|
626
|
+
}
|
|
627
|
+
|
|
628
|
+
function exportSave(){
|
|
629
|
+
clampVars();
|
|
630
|
+
const data={aura,clickPower,aps,rings,ringBoost,prestigeRank,rebirthCost,allTimeAura,rebirthBonusClick,endgameShown,state};
|
|
631
|
+
const str=btoa(JSON.stringify(data));
|
|
632
|
+
const inp=document.getElementById('lockerInput');
|
|
633
|
+
inp.value=str;
|
|
634
|
+
try { inp.select(); document.execCommand('copy'); toast('Save code copied to clipboard!'); }
|
|
635
|
+
catch(e) { toast('Save code generated — copy from the field above.'); }
|
|
636
|
+
}
|
|
637
|
+
|
|
638
|
+
function importSave(str){
|
|
639
|
+
try{
|
|
640
|
+
const parsed = JSON.parse(atob(str));
|
|
641
|
+
loadState(parsed);
|
|
642
|
+
toast('Save loaded successfully!');
|
|
643
|
+
} catch(e){ toastErr('Error loading save — invalid code.'); }
|
|
644
|
+
}
|
|
645
|
+
|
|
646
|
+
function handleInput(){
|
|
647
|
+
const inp=document.getElementById('lockerInput');
|
|
648
|
+
const val=inp.value.trim();
|
|
649
|
+
if(val==="ChickenGamesIsAhh"){
|
|
650
|
+
aura+=1000000;allTimeAura+=1000000;clampVars();
|
|
651
|
+
toast('1,000,000 aura granted!');
|
|
652
|
+
} else if(val==="6_Lakers_New_Code_Lakers"){
|
|
653
|
+
aura+=1e15;allTimeAura+=1e15;clampVars();
|
|
654
|
+
toast('QUADRILLION AURA GRANTED!');
|
|
655
|
+
} else if(val.length>50){
|
|
656
|
+
importSave(val);
|
|
657
|
+
} else {
|
|
658
|
+
toastErr('Invalid code.');
|
|
659
|
+
}
|
|
660
|
+
inp.value=''; updateUI();
|
|
661
|
+
}
|
|
662
|
+
|
|
663
|
+
setInterval(()=>{
|
|
664
|
+
if(aps>0){
|
|
665
|
+
const g=safeNum(effAps()/10, 0);
|
|
666
|
+
aura+=g; allTimeAura+=g;
|
|
667
|
+
clampVars();
|
|
668
|
+
updateUI();
|
|
669
|
+
}
|
|
670
|
+
},100);
|
|
671
|
+
setInterval(saveGame,15000);
|
|
672
|
+
|
|
673
|
+
// OWNER
|
|
674
|
+
function openOwner(){document.getElementById('ownerOverlay').classList.add('active');}
|
|
675
|
+
function closeOwner(){document.getElementById('ownerOverlay').classList.remove('active');}
|
|
676
|
+
function ownerLogin(){
|
|
677
|
+
const u=document.getElementById('ownerUser').value.trim();
|
|
678
|
+
const p=document.getElementById('ownerPass').value.trim();
|
|
679
|
+
if(u==='owner'&&p==='lrd123'){
|
|
680
|
+
document.getElementById('ownerLoginForm').style.display='none';
|
|
681
|
+
document.getElementById('ownerControls').classList.add('active');
|
|
682
|
+
}else{document.getElementById('ownerErr').textContent='Access denied.';}
|
|
683
|
+
}
|
|
684
|
+
|
|
685
|
+
function ocVal(id){const v=parseFloat(document.getElementById(id).value);return (isNaN(v)||!isFinite(v))?null:v;}
|
|
686
|
+
function ocInt(id){const v=parseInt(document.getElementById(id).value);return (isNaN(v)||!isFinite(v))?null:v;}
|
|
687
|
+
function oc_refreshRingBoost(){ringBoost=safeNum(rings*0.10, 0);}
|
|
688
|
+
|
|
689
|
+
function ownerGiveAura(){const v=ocVal('ocAuraAmt');if(!v||v<=0){toastErr('Enter a valid amount.');return;}aura=safeNum(aura+v,0);allTimeAura=safeNum(allTimeAura+v,0);clampVars();updateUI();saveGame();toast('+'+fmt(v)+' Aura added!');}
|
|
690
|
+
function ownerSetAura(){const v=ocVal('ocAuraAmt');if(v===null||v<0){toastErr('Enter a valid amount.');return;}aura=safeNum(v,0);allTimeAura=safeNum(Math.max(allTimeAura,v),0);clampVars();updateUI();saveGame();toast('Aura set to '+fmt(v)+'!');}
|
|
691
|
+
function ownerAddClick(){const v=ocVal('ocClickAmt');if(!v||v<=0){toastErr('Enter a valid amount.');return;}clickPower=safeNum(clickPower+v,1);clampVars();updateUI();saveGame();toast('+'+fmt(v)+' click power!');}
|
|
692
|
+
function ownerSetClick(){const v=ocVal('ocClickAmt');if(v===null||v<0){toastErr('Enter a valid amount.');return;}clickPower=safeNum(v,1);clampVars();updateUI();saveGame();toast('Click power set to '+fmt(v)+'!');}
|
|
693
|
+
function ownerAddAps(){const v=ocVal('ocApsAmt');if(!v||v<0){toastErr('Enter a valid amount.');return;}aps=safeNum(aps+v,0);clampVars();updateUI();saveGame();toast('+'+fmt(v)+' auto aura/sec!');}
|
|
694
|
+
function ownerSetAps(){const v=ocVal('ocApsAmt');if(v===null||v<0){toastErr('Enter a valid amount.');return;}aps=safeNum(v,0);clampVars();updateUI();saveGame();toast('Auto Aura/sec set to '+fmt(v)+'!');}
|
|
695
|
+
function ownerAddRings(){const v=ocInt('ocRingsAmt');if(!v||v<=0){toastErr('Enter a valid amount.');return;}rings=safeInt(rings+v,0);oc_refreshRingBoost();clampVars();updateUI();saveGame();toast('+'+v+' rings! Boost: +'+Math.round(ringBoost*100)+'%');}
|
|
696
|
+
function ownerSetRings(){const v=ocInt('ocRingsAmt');if(v===null||v<0){toastErr('Enter a valid amount.');return;}rings=safeInt(v,0);oc_refreshRingBoost();clampVars();updateUI();saveGame();toast('Rings set to '+v+'!');}
|
|
697
|
+
function ownerAddBonus(){const v=ocVal('ocBonusAmt');if(!v||v<=0){toastErr('Enter a valid amount.');return;}rebirthBonusClick=safeNum(rebirthBonusClick+v,0);clampVars();updateUI();saveGame();toast('+'+fmt(v)+' bonus click!');}
|
|
698
|
+
function ownerSetBonus(){const v=ocVal('ocBonusAmt');if(v===null||v<0){toastErr('Enter a valid amount.');return;}rebirthBonusClick=safeNum(v,0);clampVars();updateUI();saveGame();toast('Rebirth bonus set to '+fmt(v)+'!');}
|
|
699
|
+
function ownerAddPrestige(){const v=ocInt('ocPrestigeAmt');if(!v||v<=0){toastErr('Enter a valid amount.');return;}prestigeRank=safeInt(prestigeRank+v,0);clampVars();updateUI();saveGame();toast('+'+v+' prestige ranks!');}
|
|
700
|
+
function ownerSetPrestige(){const v=ocInt('ocPrestigeAmt');if(v===null||v<0){toastErr('Enter a valid amount.');return;}prestigeRank=safeInt(v,0);clampVars();updateUI();saveGame();toast('Prestige set to '+v+'!');}
|
|
701
|
+
function ownerSetRebirthCost(){const v=ocVal('ocRebirthCostAmt');if(!v||v<=0){toastErr('Enter a valid amount.');return;}rebirthCost=safeNum(v,1000000);clampVars();updateUI();saveGame();toast('Rebirth cost set to '+fmt(v)+'!');}
|
|
702
|
+
|
|
703
|
+
function ownerQ(n){aura=safeNum(aura+n,0);allTimeAura=safeNum(allTimeAura+n,0);clampVars();updateUI();saveGame();toast('+'+fmt(n)+' Aura!');}
|
|
704
|
+
function ownerQClick(n){clickPower=safeNum(clickPower+n,1);clampVars();updateUI();saveGame();toast('+'+fmt(n)+' click power!');}
|
|
705
|
+
function ownerQAps(n){aps=safeNum(aps+n,0);clampVars();updateUI();saveGame();toast('+'+fmt(n)+' auto/sec!');}
|
|
706
|
+
function ownerQRings(n){rings=safeInt(rings+n,0);oc_refreshRingBoost();clampVars();updateUI();saveGame();toast('+'+n+' rings!');}
|
|
707
|
+
|
|
708
|
+
function ownerInstantRebirth(){
|
|
709
|
+
for(let i=0;i<20;i++){
|
|
710
|
+
const atRebirth=Math.max(safeNum(aura,0),safeNum(rebirthCost,1000000));
|
|
711
|
+
rebirthBonusClick=safeNum(rebirthBonusClick+Math.max(1,safeInt(atRebirth/1000000,0)),0);
|
|
712
|
+
rings=safeInt(rings+Math.max(1,safeInt(atRebirth/rebirthCost,0)),0);
|
|
713
|
+
oc_refreshRingBoost(); prestigeRank++;
|
|
714
|
+
aura=0; clickPower=1; aps=0;
|
|
715
|
+
state=UPGRADES.map(u=>({id:u.id,cost:u.baseCost,owned:0}));
|
|
716
|
+
const nextCost=Math.floor(rebirthCost*2.8);
|
|
717
|
+
rebirthCost=isFinite(nextCost)&&nextCost>0?nextCost:rebirthCost;
|
|
718
|
+
}
|
|
719
|
+
clampVars();
|
|
720
|
+
document.getElementById('storeEl').innerHTML='';
|
|
721
|
+
updateUI();saveGame();
|
|
722
|
+
toast('20 Rebirths done! Prestige: '+prestigeRank+' | Bonus: +'+fmt(rebirthBonusClick));
|
|
723
|
+
}
|
|
724
|
+
function ownerUnlockAll(){allTimeAura=1e20;aura=safeNum(Math.max(aura,1e16),0);clampVars();document.getElementById('storeEl').innerHTML='';updateUI();saveGame();toast('All upgrades unlocked!');}
|
|
725
|
+
function ownerMaxEverything(){
|
|
726
|
+
aura=1e16;allTimeAura=safeNum(Math.max(allTimeAura,1e16),0);
|
|
727
|
+
clickPower=10000000;aps=10000000;
|
|
728
|
+
rings=safeInt(rings+1000,0);oc_refreshRingBoost();
|
|
729
|
+
rebirthBonusClick=safeNum(rebirthBonusClick+1000000,0);
|
|
730
|
+
clampVars();
|
|
731
|
+
document.getElementById('storeEl').innerHTML='';
|
|
732
|
+
updateUI();saveGame();
|
|
733
|
+
toast('Everything maxed!');
|
|
734
|
+
}
|
|
735
|
+
function ownerSkipToEnd(){allTimeAura=ENDGAME_AT;endgameShown=false;triggerEndgame();}
|
|
736
|
+
function ownerResetRebirthCost(){rebirthCost=1000000;clampVars();updateUI();saveGame();toast('Rebirth cost reset to 1M!');}
|
|
737
|
+
function ownerReset(){
|
|
738
|
+
if(!confirm('HARD RESET — ALL progress lost!'))return;
|
|
739
|
+
try { localStorage.removeItem(SAVE_KEY); } catch(e) {}
|
|
740
|
+
aura=0;clickPower=1;aps=0;rings=0;ringBoost=0;prestigeRank=0;
|
|
741
|
+
rebirthCost=1000000;allTimeAura=0;rebirthBonusClick=0;endgameShown=false;
|
|
742
|
+
state=UPGRADES.map(u=>({id:u.id,cost:u.baseCost,owned:0}));
|
|
743
|
+
document.getElementById('storeEl').innerHTML='';
|
|
744
|
+
updateUI();closeOwner();
|
|
745
|
+
toast('Game reset.');
|
|
746
|
+
}
|
|
747
|
+
|
|
748
|
+
try{
|
|
749
|
+
const raw=localStorage.getItem(SAVE_KEY);
|
|
750
|
+
if(raw){const local=JSON.parse(raw);if(local)loadState(local);}
|
|
751
|
+
}catch(e){}
|
|
752
|
+
updateUI();
|
|
753
|
+
|
|
754
|
+
const bgAnim=document.getElementById('bgAnim');
|
|
755
|
+
for(let i=0;i<35;i++){
|
|
756
|
+
const p=document.createElement('div');p.className='particle';
|
|
757
|
+
const size=Math.random()*8+2;
|
|
758
|
+
p.style.cssText=`width:${size}px;height:${size}px;background:${Math.random()>0.6?'rgba(255,215,0,0.4)':'rgba(255,255,255,0.08)'};left:${Math.random()*100}%;animation-duration:${Math.random()*15+12}s;animation-delay:${Math.random()*-25}s;`;
|
|
759
|
+
bgAnim.appendChild(p);
|
|
760
|
+
}
|
|
761
|
+
</script>
|
|
762
|
+
</body>
|
|
763
|
+
</html>
|