Browse Source

new sound collections

modals-to-spa
stingl 4 years ago
parent
commit
e1e779f204
  1. BIN
      assets/audio/jesus_wtf.mp3
  2. BIN
      assets/audio/meow.mp3
  3. BIN
      assets/audio/moo.mp3
  4. BIN
      assets/audio/pika.mp3
  5. BIN
      assets/audio/psycho.mp3
  6. BIN
      assets/audio/transition.mp3
  7. BIN
      assets/audio/wilhelm.mp3
  8. BIN
      assets/audio/wtf.mp3
  9. 21
      js/app.js

BIN
assets/audio/jesus_wtf.mp3

Binary file not shown.

BIN
assets/audio/meow.mp3

Binary file not shown.

BIN
assets/audio/moo.mp3

Binary file not shown.

BIN
assets/audio/pika.mp3

Binary file not shown.

BIN
assets/audio/psycho.mp3

Binary file not shown.

BIN
assets/audio/transition.mp3

Binary file not shown.

BIN
assets/audio/wilhelm.mp3

Binary file not shown.

BIN
assets/audio/wtf.mp3

Binary file not shown.

21
js/app.js

@ -19,10 +19,21 @@ const TimeTrack = {
importStringForPortals: '', importStringForPortals: '',
publicDB: false, publicDB: false,
fun: false, fun: false,
sounds: [ sounds: {
// 'psycho', bad: [
'alert' 'alert',
'wilhelm',
'wtf',
'jesus_wtf'
], ],
animals: [
'meow',
'moo',
'quack',
'pika',
'transition'
]
},
} }
}, },
mounted() { mounted() {
@ -112,7 +123,7 @@ const TimeTrack = {
let noNoTickets = ['#1920', '#3110', '#2492', '#2419', '#1256']; let noNoTickets = ['#1920', '#3110', '#2492', '#2419', '#1256'];
if (this.fun && noNoTickets.includes(ticket.number)) { if (this.fun && noNoTickets.includes(ticket.number)) {
playSound(oneOf(this.sounds)) playSound(oneOf(this.sounds.bad))
} }
this.$forceUpdate(); this.$forceUpdate();
@ -355,7 +366,7 @@ const TimeTrack = {
message: 'Portal-Wechsel erfolgreich', message: 'Portal-Wechsel erfolgreich',
color: 'green' color: 'green'
}); });
playSound('quack'); playSound(oneOf(vue.sounds.animals));
vue.updateStorage(); vue.updateStorage();
}) })
}, },