Nice work, love the loading screen. Everything went A okay with the loading screen, then I tried adding my music. So I did what I’m pretty sure was suppose to be
I deleated the default music from the music folder
I added my converted .ogg music file to the music folder
After that the loading screen is still fine, but now there is no music
the .ogg song must have the name “music”, otherwise the system will not read the song and not load it, unless you can edit the song name from index.html and from __resource.lua.
like this !
first of all, sorry for the delay I had problems with the pc, and I already said it was a problem in the html from the music script, it was solved by @J0k3rc1to, you can find it here
<audio controls id="leson" src="music/music.ogg" type="audio/ogg" hidden="true" loop="true"/>
<script>
var play = false;
var myAudio = document.getElementById("leson");
myAudio.autoplay = true;
myAudio.load();
myAudio.volume = 0.7;
function onKeyDown(event) {
switch (event.keyCode) {
case 32: //SpaceBar
if (play) {
myAudio.pause();
play = false;
} else {
myAudio.play();
play = true;
}
break;
}
return false;
}
window.addEventListener("keydown", onKeyDown, false);
</script>
Hello good loadingscreen but I have a problem that loadingscreen me slashed and when I connect so it does not connect to the server and when I remove it so what to do with it?
Hello good loadingscreen but I have a problem that loadingscreen me slashed and when I connect so it does not connect to the server and when I remove it so what to do with it?