Skip to content

Commit 4fa3f95

Browse files
authored
Merge pull request #31 from tinteeam/main
stuff
2 parents dd17c60 + 5fcb433 commit 4fa3f95

10 files changed

Lines changed: 244 additions & 119 deletions

File tree

README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,11 @@ the game now has a custom server to host the game.
4040

4141
please install the dependencies before using.
4242

43-
the server is built using express js
43+
the server is built using express js
44+
45+
46+
# mirror
47+
48+
this project is being mirrored to gitlab.
49+
50+
check the gitlab repository at https://gitlab.com/moneyclick/Moneyclick

mclick-counter/README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# mclick counter
2+
a custom large counter for mclick game and easy to make large counters. originally meant for mclick only.
3+
4+
# usage
5+
6+
not yet avaidable

mclick-counter/package.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"name": "mclick-counter",
3+
"version": "0.7.0",
4+
"main": "src/index.js",
5+
"scripts": {
6+
"test": "echo \"Error: no test specified\" && exit 1"
7+
},
8+
"keywords": [],
9+
"author": "randomusert",
10+
"license": "MIT",
11+
"description": "a custom large counter for mclick game and easy to make large counters"
12+
}

mclick-counter/src/index.js

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
export default class MclickCounter {
2+
constructor(initialValue = 0n) {
3+
this.value = BigInt(initialValue);
4+
}
5+
6+
increment(amount = 1n) {
7+
this.value += BigInt(amount);
8+
}
9+
10+
set(value) {
11+
this.value = BigInt(value);
12+
}
13+
14+
get() {
15+
return this.value;
16+
}
17+
18+
// Format as words (e.g., "1.2 million", "3.4 billion", etc.)
19+
format() {
20+
const units = [
21+
{ suffix: "decillion", value: 10n ** 33n },
22+
{ suffix: "nonillion", value: 10n ** 30n },
23+
{ suffix: "octillion", value: 10n ** 27n },
24+
{ suffix: "septillion", value: 10n ** 24n },
25+
{ suffix: "sextillion", value: 10n ** 21n },
26+
{ suffix: "quintillion", value: 10n ** 18n },
27+
{ suffix: "quadrillion", value: 10n ** 15n },
28+
{ suffix: "trillion", value: 10n ** 12n },
29+
{ suffix: "billion", value: 10n ** 9n },
30+
{ suffix: "million", value: 10n ** 6n },
31+
{ suffix: "thousand", value: 10n ** 3n }
32+
];
33+
34+
for (const unit of units) {
35+
if (this.value >= unit.value) {
36+
const whole = this.value / unit.value;
37+
const decimal = (this.value % unit.value) / (unit.value / 10n);
38+
return `${whole}.${decimal} ${unit.suffix}`;
39+
}
40+
}
41+
42+
return this.value.toString(); // just show number for small values
43+
}
44+
}

package-lock.json

Lines changed: 68 additions & 68 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
"devDependencies": {
33
"tailwindcss": "^4.1.4"
44
},
5+
"scripts": {
6+
"start": "node server.js",
7+
"buildcss": "npx tailwindcss -i ./src/main.css -o ./src/output.css"
8+
},
59
"dependencies": {
610
"@tailwindcss/cli": "^4.1.4",
711
"express": "^5.1.0",

src/index.html

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,19 @@
2626

2727
<!-- Upgrades Section (Right) -->
2828
<aside class="w-80 bg-gray-800 p-4 rounded-lg shadow space-y-6">
29+
<div>
30+
<h2 class="text-xl text-green-400 font-bold mb-2">Upgrades</h2>
31+
<button onclick="buyclicker()" id="clickerbuy" class="w-full bg-green-600 hover:bg-green-500 text-white py-2 rounded mb-2">
32+
Clicker [$100]
33+
</button>
34+
<button onclick="Ultraclickerbuys()" class="w-full bg-green-600 hover:bg-green-500 text-white py-2 rounded font-display">
35+
Ultra Clicker [$2000]
36+
</button>
37+
</div>
38+
2939
<!-- Cursors -->
3040
<div>
31-
<h2 class="text-xl text-green-400 font-bold mb-2">Cursors</h2>
41+
<h2 class="text-xl text-green-400 font-bold mb-2">Buildings</h2>
3242
<button onclick="BuyCursors()" class="w-full bg-green-600 hover:bg-green-500 text-white py-2 rounded mb-2">
3343
Cursor [$<span id="cursorCost">2</span>] — <span id="cursors">0</span>
3444
</button>
@@ -38,15 +48,7 @@ <h2 class="text-xl text-green-400 font-bold mb-2">Cursors</h2>
3848
</div>
3949

4050
<!-- Buildings -->
41-
<div>
42-
<h2 class="text-xl text-green-400 font-bold mb-2">Buildings</h2>
43-
<button onclick="buyclicker()" id="clickerbuy" class="w-full bg-green-600 hover:bg-green-500 text-white py-2 rounded mb-2">
44-
Clicker [$100]
45-
</button>
46-
<button onclick="Ultraclickerbuys()" class="w-full bg-green-600 hover:bg-green-500 text-white py-2 rounded">
47-
Ultra Clicker [$2000]
48-
</button>
49-
</div>
51+
5052
</aside>
5153

5254
</main>

0 commit comments

Comments
 (0)