Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Kind of a chicken and egg problem as a webgl build lets people play and not worry about downloads.  My suggestion get the latest build of Unity for your game and dig out those webgl build bugs and I think you will get way more feedback.

If things run slow on WebGL you can use the profiling tools in Unity to highlight what is slowing your game down and you can optimise those areas, for instance just reducing the amount of things in the game, changing missiles/bullets from game objects to particles.  Or sometime enemy AI does not need to recalculate everything every frame as moving towards the player is enough and additional steering or attack logic could be every other frame. 

Or if your units use individual classes you could turn them into super lite classes that just register with a Hord manager class that can more quickly process their actions with one Update function looping over all of the enemies as opposed to 10 or 100 Update function calls every frame.

I'm using something called Game Creator 2 for all my logic, and have very few On Update functions but I don't know how to modify the code to optimize it. It's a simplified visual scripting framework and I don't use a single bit of C#. What lags the game down are these Character Components that handles all the AI for the characters, which I also use for my turrets and other traps. Someone in the discord has managed to optimize them but did not share their solution, although they suggested it to the dev of the asset. 


I'm aware that making a web build would get my game to a wider audience, but it just adds a lot of extra stuff that I don't want to mess with. I have other games that are WebGL versions, but I have already done months of work developing this game and trying to find out what is crashing the web build could take a very long time. All that just to get a few extra people to play my game, and still maybe not that many people. When I'm ready to put it out there, it will go on Steam or something but for now I just need a few people to play test and point out any issues it might have. Which seems to be hard to do. I'm not sure why most people take issue with downloading a game but are perfectly fine with playing it in their browser. It's barely over 130mb and they could just delete it if and when they are done playing it. It's very simple to download and run. Just unzip the zip file, and open the exe.


I appreciate your feedback and advice, regardless.