DavidAames

Members
  • Content Count

    2
  • Joined

  • Last visited

  1. I just loaded the audiofiles into the html-file <audio id="theme" controls> <source src="assets/music/Questions.ogg" type="audio/ogg"> </audio> and let Phaser do the work. var music = document.getElementById("theme"); music.play(); Works perfect.
  2. Hey guys, first things first: sorry for my bad english. I have a big problem with phaser. I build a educational game without a webserver and everything's going fine and runs perfectly (using Phaser.CANVAS). But when i load a sound (game.load.audio("theme","assets/music/theme.ogg");) i get this error: "Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https." I've watched online and it seems, i need to have a webserver. But there are some questions and problems with this kind of thing. 1. Why can i add pictures, animations,code and more from my harddrive but music is a no go?! 2. I want the Game runs complete offline. It's important because the guy i am making this game for is teacher and they still have no Internet in his school. (unbelivable but true) 3. If I would setup a local server, then every who gets the game need one to?! it's so frustrating. i build the game as a html-file because this game should go to other schools with linux, mac etc. I just wanted it runs everywhere. With or without internet, no matter what OS is using. But what is a game without a Soundtrack? I have build the whole game and the only thing missing, is sound. I hope somebody can help me.