Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

I'm not sure how to make it less laggy on the browser, I'm trying to fix it. Thanks for playing!

I don't know how it's code, but it seem that what can take performance is the movement of the bugs, the light and the detection of the character in the light. You may optimize by culling the bugs/light which are too far from you rplayer.  Every or every few physicframe (fixedupdate in unity) you check the distance between the bug/light and your player. It it's smaller than a fixed distance then you enable them, otherwise you disable them.

(+1)

That makes sense! I'm running out of steam for this project but next time I'll definitely add something like that.