preloader test
About
If something doesn't work I would appreciate feedback. Thank you.
This is a test for pre-loading assets in JavaScript and smoothly starting a game.
It loads a title screen and plays a sound as a test.
In my last project I had a problem in that textures were loading after the gameplay had started. Here I have set out a method of pre-loading assets and starting WebGL when everything is ready to be displayed properly.
I think the audio api I use isn't compatible with every browser, but it is compatible with everything I have tested it on.
I also implemented resize detection so WebGL will adjust things for different screen sizes automatically. It works on my mobile phone as well. I just need to implement mobile controls so my games can work on mobile also.