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.

Comments

Log in with itch.io to leave a comment.

Really great splash screen, would be great if the particle pixel size would match the logo, just my personal opinion

I agree. Unfortunately that was me being too lazy to redesign a bigger sprite. I should have scaled the particles up to be the same. Thanks for the feedback