|
1 | 1 | const XP_PER_LEVEL = 45; |
2 | 2 |
|
3 | 3 | // 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 |
14 | 14 |
|
15 | 15 | const NUM_LEVELS = LEVELS.length; |
16 | 16 | // Load saved level or start at 0 |
@@ -625,10 +625,12 @@ function activateGravityEffect() { |
625 | 625 | ); |
626 | 626 | targets.forEach((el) => { |
627 | 627 | 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)`; |
632 | 634 | el.style.opacity = "0"; |
633 | 635 | el.style.pointerEvents = "none"; |
634 | 636 | }); |
|
0 commit comments