Sounds and Music in JavaScript games (Tutorial)

Поделиться
HTML-код
  • Опубликовано: 12 сен 2024

Комментарии • 30

  • @RobertoRenovato
    @RobertoRenovato 3 года назад +3

    Thank you for another great tutorial. I think you make the most simple, yet very useful tutorials, with elegant solutions.

  • @funguycode6447
    @funguycode6447 2 года назад

    Your style is really unique! Thank you for sharing❤️

  • @nomoremuda
    @nomoremuda 3 года назад +1

    Looks simple, thanks Drew!

  • @usemt9726
    @usemt9726 3 года назад +1

    Keep up the good work, thanks

  • @sertansantos3032
    @sertansantos3032 2 года назад

    Thanks for the quick and helpful video

  • @pharell366
    @pharell366 3 года назад +2

    very good video

  • @rajeshmathai623
    @rajeshmathai623 3 года назад

    An aspiring game dev just subed

  • @PioloLoni
    @PioloLoni 2 года назад

    so good, thanks man

  • @SarahStarmer
    @SarahStarmer 2 года назад +1

    Hi, I loved your video. I think this might be a stupid question but how do you use your own sound effects url's? The sound effects you posted do work. Are they copyrighted?

    • @DrewConley
      @DrewConley  2 года назад

      They are okay for anybody to use 😊

  • @alem182
    @alem182 Год назад

    Thank you very much!

  • @neelypeely3155
    @neelypeely3155 2 года назад +1

    thanks for another great tutorial. also how did you get the sound effects for danger crew? i want to add some sound effects to my game but i can't seem to find any

    • @DrewConley
      @DrewConley  2 года назад

      We made them! Also used a lot from a VST called Super Audio Cart. Itch io has great collections as well

  • @fyadtreir9754
    @fyadtreir9754 3 года назад

    Thank you man realy thank you!!!

  • @mes3608
    @mes3608 2 года назад

    great teaching style what if I have my own SFX is it new Audio instead of new Howl???

  • @viniciusschadeck4992
    @viniciusschadeck4992 5 месяцев назад

    Nice video, do you have a way to make installer for javascripts games? I have a project running nwjs it is like electrun, make a exec file based on chromium, but i not sure how can i make a installer, and even putting everthing on a zip file, it is not really good for more lower level users, i mean, my system had issues unpacking it, and she work daily on pcs, but most the time doing job related to word file and those stuff, most apps are already in the computer, and she almost ever install stuff as apps in her smarphone and i guess on computer will be close to that, but a wizard installer or something will be cool to do, and i'am looking for this actually, not sure how i dropped in a sound video LOL

  • @mjmj007a
    @mjmj007a 2 года назад

    Thank You...

  • @ramstube
    @ramstube 3 года назад

    Thanks 🤗

  • @patriciadelossantos959
    @patriciadelossantos959 Год назад

    Hello Drew Conley! I hope you can see my message but how can I autoplay the music background without pressing the button "play music" to really play the bgm thanks :))

    • @DrewConley
      @DrewConley  Год назад

      Hey! You could try firing the `.play` command on page load, but browsers typically do not allow autoplay without some kind of click or interaction first. The music will try to play but remain silent until the user interacts with the page. I usually mitigate this with a Title Screen, where the user has to click or press a key to get through. Then music will work fine.

  • @sarahrose5171
    @sarahrose5171 2 года назад

    where are you finding these sounds to use? how are you downloading them? howler js is just providing the code?
    but im not seeing how we get a sound in general.

  • @benjamingerd4703
    @benjamingerd4703 3 года назад

    Thanks, what license applies to the Background Music, please?

  • @ricardodelgado1035
    @ricardodelgado1035 2 года назад

    Hi Drew! Great video man I found it really helpful! The only thing I'm kinda stumped on is when I'm using my web app on a phone browser. When using my app on a phone browser, my sounds work perfectly fine upon landing on the page BUT say the user decides to leave the browser to, for example, check a text message or go onto RUclips for a little bit. When they decide to come back to the browser and begin using the sounds again, the sounds do not play for whatever reason. They only come back if the user refreshes the page but I want the user to be able to play sounds without having to refresh if that makes sense. I have checked things like the Howler.ctx.state and even though the state goes into suspended after a few seconds of inactivity, I found that it was going back to "resume" as soon as you start attempting to play sounds again but this time the sound doesn't play. This is only happening on mobile devices and I have not been able to figure this out. Would you be able to help me? You seem to really know your way around the Howler library so I figured I'd ask.
    Edit: My sounds are all based on user interaction so there's nothing set to autoplay which is why I'm confused on why the sounds aren't playing upon user interaction. Thought I should add this to clarify.

    • @DrewConley
      @DrewConley  2 года назад

      Hey! That sounds frustrating to debug. Wish I had more knowledge, but I haven’t used howler on many mobile sites. Do sounds continue to play if you simply change tabs?

    • @nursegilbey
      @nursegilbey 2 года назад

      If you package your game as a mobile app through Cordova, will that fix it?

  • @classicchessplayer7068
    @classicchessplayer7068 3 года назад

    Very helpful!
    but i cant make it repeat ):

  • @FrostGamingHype
    @FrostGamingHype 3 года назад +1

    Drew im an elite hacker and an sr c++ game engined dev and i like your Danger Crew
    Game I Completed The Demo To The End Of Danger Crew plz give me an free version
    i wanna know what to do i cloud have just hacked your web but im an elite hacker so please

  • @antoniofuller2331
    @antoniofuller2331 2 года назад

    Hmm