Get HTML5 game to perform faster/more stable
Hello!
I just finished an HTML5 dress up game. I did it exactly like I used to with my flash games (but of course in javascript instead of AS3). However the result is a poorly performing game. It works pretty well when testing locally (although it takes 5-10 minutes to start the test), but online it's slow, laggy and some people can't even get past the loading screen. When discussing with other developers (although the ones I talked to were pretty much as new to HTML5 as I am), we concluded that it's probably because the game is so big and have so many items in it. As a dress up game it's pretty heavy on the images.
Now I wonder, is there anything I can do to make the game faster and more stable? (note that I'm a novice in working with HTML5 canvases, I only work in Animate CC with the code on the frames)
In my next game I'm lowering down the amount of items used and lowering the resolution. Before I used 1200x900px, which is certainly bigger than the standard 800x600px, but it allowed me to create better artworks for it and flash could take it. Now I'm trying a portrait format in 626x900px, so at least a big chunk of the game is cut out. In order to use color filters I cache all bitmaps that these filters will be applied to and I'm not sure if it matters but I do cache the smallest area possible to cover them. I've also tried to reduce the quality of the images in publishing options but anything less than 32 bits removed the transparency on the pictures which doesn't really work in this game.
Is there anything else I can do? I'm thinking (and also kinda hope) that I'm missing something really obvious just because I'm a noob.
You can try the game in question over here: Tomboy Creator HTML5
That is if you can get past the loading screen. It seems that the game works the best on desktop and chrome. Any other combination of device and browser will cause different issues to show up. I would continue working in flash but now more and more website refuses to even publish flash games, so it's not much of an option anymore.
