Skip to content

Commit

Permalink
V2.2 Asteroid Overlaps, Bugfixes, Abstraction
Browse files Browse the repository at this point in the history
  • Loading branch information
Mshl2299 committed Aug 12, 2024
1 parent 65403de commit 305d0e2
Show file tree
Hide file tree
Showing 14 changed files with 838 additions and 1,106 deletions.
Binary file modified Audio/explosion.wav
Binary file not shown.
Binary file modified Backgrounds/galaxyAnim.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added BlueExplosion/blueExplosion.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
102 changes: 0 additions & 102 deletions Scripts/asteroids.js

This file was deleted.

40 changes: 2 additions & 38 deletions Scripts/audio.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ function changeMenuMusic(source) {
}

function randomizeMenuMusic() {
menuMusic.pause();
menuMusicNumber = Math.floor((Math.random() * 4));
switch (menuMusicNumber) {
case 0:
Expand All @@ -82,44 +83,7 @@ function randomizeMenuMusic() {
menuMusic.src = "Audio/stageSelectJJunkala.wav";
break;
}
}

//navigation
function prevMusicPage() {
//if on page 1 go to page 3
if (!musicPage1.classList.contains("hidden")) {
musicPage1.classList.add("hidden");
musicPage3.classList.remove("hidden");
}
//if on page 2 go to page 1
else if (!musicPage2.classList.contains("hidden")) {
musicPage2.classList.add("hidden");
musicPage1.classList.remove("hidden");
}
//if on page 3 go to page 2
else if (!musicPage3.classList.contains("hidden")) {
musicPage3.classList.add("hidden");
musicPage2.classList.remove("hidden");
}
clickSound.play();
}
function nextMusicPage() {
//if on page 1 go to page 2
if (!musicPage1.classList.contains("hidden")) {
musicPage1.classList.add("hidden");
musicPage2.classList.remove("hidden");
}
//if on page 2 go to page 3
else if (!musicPage2.classList.contains("hidden")) {
musicPage2.classList.add("hidden");
musicPage3.classList.remove("hidden");
}
//if on page 3 go to page 1
else if (!musicPage3.classList.contains("hidden")) {
musicPage3.classList.add("hidden");
musicPage1.classList.remove("hidden");
}
clickSound.play();
menuMusic.play();
}

function updateVolume() { //!!!
Expand Down
126 changes: 0 additions & 126 deletions Scripts/detections.js

This file was deleted.

Loading

0 comments on commit 305d0e2

Please sign in to comment.