Skip to content

Commit a85ec1d

Browse files
Amrit-NigamvirajbhartiyaTanuj-A06dhruvwarriorrVinayak314
authored
Hack X v1 (#141)
* init: hack x * feat: Add last year FAQs * feat: Add logo to the header page * fix: left align FAQs * feat: add images and links section for team (#130) * add images and links section for team * added pictures and link for team * About section updates (#135) * update: added about-tags and changed tiles and button * reformatting and scroll animations * fix: remove tracks * hack X: red color refactored to navy blue color - amrit (#140) * refactor: update styles and structure for Hack X website * add:vignette edge --------- Co-authored-by: Viraj Bhartiya <vlbhartiya@gmail.com> Co-authored-by: Aditi Singh <aditi.singh0205@gmail.com> * feat: Load and display a logo image * feat: add the music dance experince (#131) * feat: add the music dance experince * add escape functionality to mde --------- Co-authored-by: omikacharya <omikacharya@gmail.com> Co-authored-by: Omik Acharya <148583486+OmikAcharya@users.noreply.github.com> * Redesigned the What you get section, and added a hint in the game (#138) * ui: redesigned what you get section * ui: Hint for users to know how to play the game * ui: added responsiveness for what you get section --------- Co-authored-by: omikacharya <omikacharya@gmail.com> * feat: integrate 3D model viewer and enhance visual effects * feat: implement custom cursor and enhance text display in Bin class * refactor: update apply button styling and script loading in index.html; remove unused cursor glow initialization in sections.js * refactor: Use external URLs for team member photos and remove local image assets. --------- Co-authored-by: Viraj Bhartiya <vlbhartiya@gmail.com> Co-authored-by: �Tanuj-A06 <tanuj.adarkar06@gmail.com> Co-authored-by: Dhruv Kumar <dhruvkumar31712@gmail.com> Co-authored-by: Vinayak Pai <vinayakpai2006@gmail.com> Co-authored-by: Omik Acharya <148583486+OmikAcharya@users.noreply.github.com> Co-authored-by: Aditi Singh <aditi.singh0205@gmail.com> Co-authored-by: omikacharya <omikacharya@gmail.com> Co-authored-by: Anmol Rai <168467734+spooodieman@users.noreply.github.com> Co-authored-by: Shantanav Mukherjee <shantanav7@gmail.com>
1 parent a56ac85 commit a85ec1d

25 files changed

Lines changed: 7298 additions & 0 deletions

.DS_Store

0 Bytes
Binary file not shown.

hackx/.gitignore

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
.DS_Store
2+
node_modules/
3+
package.json
4+
package-lock.json
5+
.superpowers/
6+
complete/
7+
main-level/
8+
docs/superpowers/
9+
images/lumon-anim.gif
10+
images/lumon-globe.png
11+
images/lumon.png
12+
images/mde.gif
13+
images/modal_blank.psd

hackx/3dmodel/3D Asset Final.glb

1.72 MB
Binary file not shown.

hackx/audio-assets/shakey-jake.mp3

1.83 MB
Binary file not shown.

hackx/audio.js

Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
let audioCtx = null;
2+
let droneOsc = null;
3+
4+
function initAudio() {
5+
if (audioCtx) return;
6+
try {
7+
audioCtx = new (window.AudioContext || window.webkitAudioContext)();
8+
startDrone();
9+
} catch (e) {
10+
audioCtx = null;
11+
}
12+
}
13+
14+
function startDrone() {
15+
if (!audioCtx) return;
16+
droneOsc = audioCtx.createOscillator();
17+
const gain = audioCtx.createGain();
18+
droneOsc.type = 'sine';
19+
droneOsc.frequency.setValueAtTime(60, audioCtx.currentTime);
20+
gain.gain.setValueAtTime(0.03, audioCtx.currentTime);
21+
droneOsc.connect(gain);
22+
gain.connect(audioCtx.destination);
23+
droneOsc.start();
24+
}
25+
26+
function playClick() {
27+
if (!audioCtx) return;
28+
const osc = audioCtx.createOscillator();
29+
const gain = audioCtx.createGain();
30+
osc.type = 'sine';
31+
osc.frequency.setValueAtTime(440, audioCtx.currentTime);
32+
gain.gain.setValueAtTime(0.1, audioCtx.currentTime);
33+
gain.gain.exponentialRampToValueAtTime(0.001, audioCtx.currentTime + 0.05);
34+
osc.connect(gain);
35+
gain.connect(audioCtx.destination);
36+
osc.start();
37+
osc.stop(audioCtx.currentTime + 0.05);
38+
}
39+
40+
function playRefine() {
41+
if (!audioCtx) return;
42+
const osc = audioCtx.createOscillator();
43+
const gain = audioCtx.createGain();
44+
osc.type = 'sine';
45+
osc.frequency.setValueAtTime(200, audioCtx.currentTime);
46+
osc.frequency.exponentialRampToValueAtTime(800, audioCtx.currentTime + 0.2);
47+
gain.gain.setValueAtTime(0.08, audioCtx.currentTime);
48+
gain.gain.exponentialRampToValueAtTime(0.001, audioCtx.currentTime + 0.2);
49+
osc.connect(gain);
50+
gain.connect(audioCtx.destination);
51+
osc.start();
52+
osc.stop(audioCtx.currentTime + 0.2);
53+
}
54+
55+
function playNope() {
56+
if (!audioCtx) return;
57+
const osc = audioCtx.createOscillator();
58+
const gain = audioCtx.createGain();
59+
osc.type = 'sawtooth';
60+
osc.frequency.setValueAtTime(100, audioCtx.currentTime);
61+
gain.gain.setValueAtTime(0.08, audioCtx.currentTime);
62+
gain.gain.exponentialRampToValueAtTime(0.001, audioCtx.currentTime + 0.15);
63+
osc.connect(gain);
64+
gain.connect(audioCtx.destination);
65+
osc.start();
66+
osc.stop(audioCtx.currentTime + 0.15);
67+
}
68+
69+
function playMilestone() {
70+
if (!audioCtx) return;
71+
const freqs = [200, 267, 333];
72+
freqs.forEach((freq, i) => {
73+
const osc = audioCtx.createOscillator();
74+
const gain = audioCtx.createGain();
75+
osc.type = 'sawtooth';
76+
osc.frequency.setValueAtTime(freq + (i * 2), audioCtx.currentTime);
77+
osc.detune.setValueAtTime(i * 10, audioCtx.currentTime);
78+
gain.gain.setValueAtTime(0.15, audioCtx.currentTime);
79+
gain.gain.exponentialRampToValueAtTime(0.001, audioCtx.currentTime + 0.5);
80+
osc.connect(gain);
81+
gain.connect(audioCtx.destination);
82+
osc.start();
83+
osc.stop(audioCtx.currentTime + 0.5);
84+
});
85+
}

0 commit comments

Comments
 (0)