diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..d9640f7 --- /dev/null +++ b/Makefile @@ -0,0 +1,29 @@ +JS=HuesCanvas.js HuesCore.js HuesSettings.js HuesUI.js ResourceManager.js ResourcePack.js SoundManager.js + +all: + cd ./js ; java -jar ../compiler.jar --js $(JS) --js_output_file hues-min.js + -rm ./css/hues-min.css + cd ./css ; java -jar ../yuicompressor-2.4.8.jar --type css -o hues-m-min.css hues-m.css + cd ./css ; java -jar ../yuicompressor-2.4.8.jar --type css -o hues-r-min.css hues-r.css + cd ./css ; java -jar ../yuicompressor-2.4.8.jar --type css -o hues-w-min.css hues-w.css + cd ./css ; java -jar ../yuicompressor-2.4.8.jar --type css -o hues-x-min.css hues-x.css + cd ./css ; java -jar ../yuicompressor-2.4.8.jar --type css -o hues-res-min.css hues-res.css + cd ./css ; java -jar ../yuicompressor-2.4.8.jar --type css -o style-min.css style.css + cat ./css/*-min.css >> hues-min.css + cat ./css/font-awesome.min.css >> hues-min.css + rm ./css/*-min.css + mv ./hues-min.css ./css/ + +pack: + mkdir -p release + cp index-min.html release/index.html + cp favicon.ico release/ + mkdir -p release/js + mkdir -p release/css + mkdir -p release/fonts + mkdir -p release/respacks + cp -r respacks release/ + cp -r fonts release/ + cp -r js/lib release/js + cp js/hues-min.js release/js + cp css/hues-min.css release/css \ No newline at end of file diff --git a/index-min.html b/index-min.html new file mode 100644 index 0000000..0d4fc3c --- /dev/null +++ b/index-min.html @@ -0,0 +1,107 @@ + + + + + 0x40 + + + + + + + + +
+
+
0x00
+
+
+
+
+
+
x
+
+ + + + + + +
+ +
+
+
+ +
+
+
+
+

0x40 Hues of JS, v0.1

+

Adapted from the 0x40 Flash

+

Web-ified by mon

+

With help from Kepstin

+
+
+
+

Beat glossary

+
    +
  • x Vertical blur (snare)
  • +
  • o Horizontal blur (bass)
  • +
  • - No blur
  • +
  • + Blackout
  • +
  • | Short blackout
  • +
  • : Color only
  • +
  • * Image only
  • +
  • X Vertical blur only
  • +
  • O Horizontal blur only
  • +
  • ~ Fade color
  • +
  • = Fade and change image
  • + +
+
+
+

Keyboard shortcuts

+
    +
  • ↑↓ Change song
  • +
  • ←→ Change image
  • +
  • [SHIFT] Random song
  • +
  • -+ Change volume
  • +
  • [M] Toggle mute
  • +
  • [F] Toggle automode
  • +
  • [H] Toggle UI hide
  • +
  • [C] Character list
  • +
  • [S] Song list
  • +
  • [W] Toggle window
  • +
  • [R] Resource packs
  • +
  • [O] Options
  • +
  • [I] Information
  • +
  • [1-4] Change UI
  • +
+
+
+
+
+
+
+ +
+ + + \ No newline at end of file diff --git a/index.html b/index.html index 8d69c0e..b1fdfa4 100644 --- a/index.html +++ b/index.html @@ -28,7 +28,7 @@ "./respacks/HuesMixB.zip", "./respacks/PackShit.zip" ], - load : false, //debug + //load : false, //debug autoplay : false // debug }; core = new HuesCore(defaults); diff --git a/js/HuesCore.js b/js/HuesCore.js index 361e47e..99658bb 100644 --- a/js/HuesCore.js +++ b/js/HuesCore.js @@ -50,7 +50,11 @@ HuesCore = function(defaults) { }, 1500); that.setImage(0); if(defaults.autoplay) { - that.setSong(0); + if(defaults.firstSong) { + that.setSongByName(defaults.firstSong); + } else { + that.setSong(0); + } } }, function(progress) { var prog = document.getElementById("preMain"); diff --git a/js/HuesSettings.js b/js/HuesSettings.js index 1db3d71..59ce48b 100644 --- a/js/HuesSettings.js +++ b/js/HuesSettings.js @@ -5,6 +5,8 @@ HuesSettings.prototype.defaultSettings = { autoplay : true, // If true, defaults passed in initialiser override locally saved overwriteLocal : false, + // If set, will attempt to play the named song first + firstSong: null, // UI accessible config // Autosong stuff is a todo, becuase why even implement that