diff --git a/dist/index.html b/dist/index.html index 6a4f3ad..ef04b66 100644 --- a/dist/index.html +++ b/dist/index.html @@ -3,7 +3,7 @@
-Synth Horn
+Squares
To play:
touch or click screen,
or use ZXCVBNM,. keys
diff --git a/dist/sketch.js b/dist/sketch.js
index f3e159e..d09572b 100644
--- a/dist/sketch.js
+++ b/dist/sketch.js
@@ -69,9 +69,10 @@ function startHorn() {
function handleKeyDown(e) {
if(info === true) { // is the info screen on?
- Tone.start(); // we need this to allow audio to start. probably best to put it on a different button soon though
- info = false;
- document.getElementById('welcomescreen').style.visibility="hidden";
+ // Tone.start(); // we need this to allow audio to start. probably best to put it on a different button soon though
+ // info = false;
+ // document.getElementById('welcomescreen').style.visibility="hidden";
+ startHorn();
}
var key = e.code;
diff --git a/sketch.js b/sketch.js
index f3e159e..d09572b 100644
--- a/sketch.js
+++ b/sketch.js
@@ -69,9 +69,10 @@ function startHorn() {
function handleKeyDown(e) {
if(info === true) { // is the info screen on?
- Tone.start(); // we need this to allow audio to start. probably best to put it on a different button soon though
- info = false;
- document.getElementById('welcomescreen').style.visibility="hidden";
+ // Tone.start(); // we need this to allow audio to start. probably best to put it on a different button soon though
+ // info = false;
+ // document.getElementById('welcomescreen').style.visibility="hidden";
+ startHorn();
}
var key = e.code;