Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
(+1)

Interesting game, barfed all the way out of memory. Console gave me this error: Cannot enlarge memory arrays. Either (1) compile with -s TOTAL_MEMORY=X with X higher than the current value 16777216, (2) compile with ALLOW_MEMORY_GROWTH which adjusts the size at runtime but prevents some optimizations, or (3) set Module.TOTAL_MEMORY before the program runs.

Haha - yeah, I've had it freeze up on me after barfing too long as well. Currently the game will delete vomit particles a certain distance off screen (which I hope will accommodate players simply holding the puke button as they run), but it's entirely possible to spew more in one place than the game can handle. The final level actually draws attention to the possibility, so it's not something I'd try and fix in this Nokia Jam game (though would be quite a priority for a more polished version of the same thing).

I made this using GDevelop and I'm not sure it offers any easy method of actually expanding the amount of memory available, but it might be possible to assign each vomit particle a number and then start deleting the earliest ones once a certain quantity is reached. It's very handy to know that it is actually hitting a specific limit, rather than simply growing unmanageable for the machine it's running on. How did you get that error from the console? It would be really useful for me to check in future.

(+1)

Pressing F12 in any modern desktop browser (Chrome, Firefox, Edge) opens up the dev tools. There's a console there along with some other super useful stuff if you're debugging webpages.