Skip to content

Commit 0dc3e89

Browse files
committed
style: apply prettier formatting
1 parent 8a7c400 commit 0dc3e89

1 file changed

Lines changed: 16 additions & 14 deletions

File tree

src/assets/js/script.js

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
const XP_PER_LEVEL = 45;
22

33
// XP rewards for events and secrets
4-
const XP_MOUSE_HOVER = 1; // Base XP for mouse interactions
5-
const XP_FORCE_SURGE_TICK = 10; // XP per tick during Force Surge
6-
const XP_FORCE_SURGE_TOTAL = 1000; // Total XP from Force Surge event
7-
const XP_MAGIC_BONUS = 50; // Magic XP bonus
8-
const XP_MATRIX_SECRET = 75; // Matrix easter egg unlock
9-
const XP_PULSE_SECRET = 180; // Pulse dot easter egg
10-
const XP_GRAVITY_SECRET = 250; // Gravity effect easter egg
11-
const XP_KONAMI_SECRET = 500; // Konami code easter egg
12-
const XP_FOOTER_SURGE = 1000; // Footer surge secret
13-
const XP_BADGE_CLICK = 45; // Badge click reward
4+
const XP_MOUSE_HOVER = 1; // Base XP for mouse interactions
5+
const XP_FORCE_SURGE_TICK = 10; // XP per tick during Force Surge
6+
const XP_FORCE_SURGE_TOTAL = 1000; // Total XP from Force Surge event
7+
const XP_MAGIC_BONUS = 50; // Magic XP bonus
8+
const XP_MATRIX_SECRET = 75; // Matrix easter egg unlock
9+
const XP_PULSE_SECRET = 180; // Pulse dot easter egg
10+
const XP_GRAVITY_SECRET = 250; // Gravity effect easter egg
11+
const XP_KONAMI_SECRET = 500; // Konami code easter egg
12+
const XP_FOOTER_SURGE = 1000; // Footer surge secret
13+
const XP_BADGE_CLICK = 45; // Badge click reward
1414

1515
const NUM_LEVELS = LEVELS.length;
1616
// Load saved level or start at 0
@@ -625,10 +625,12 @@ function activateGravityEffect() {
625625
);
626626
targets.forEach((el) => {
627627
const dist = window.innerHeight + 1000;
628-
el.style.transition = `transform ${1 + Math.random()
629-
}s ease-in, opacity 1s`;
630-
el.style.transform = `translateY(${dist}px) rotate(${Math.random() * 60 - 30
631-
}deg)`;
628+
el.style.transition = `transform ${
629+
1 + Math.random()
630+
}s ease-in, opacity 1s`;
631+
el.style.transform = `translateY(${dist}px) rotate(${
632+
Math.random() * 60 - 30
633+
}deg)`;
632634
el.style.opacity = "0";
633635
el.style.pointerEvents = "none";
634636
});

0 commit comments

Comments
 (0)