Skip to main content

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

hm... From what I can see of the files, why not associate every unit to a number, then use arrays to know the game state and all? Enemies would use the same with a number for name, icon, and base stats, then you could create another 2 arrays for stat boosts. It would decrease the computation needed for each round of the battle.

It would require an overhaul of the files though, so it might be a lot of work.

Sorry if you did this already, it's just my two cents as a past coder to optimize the code.

It would let the game run with less lag because while there is a little, it's still noticeable. I'd assume it's itch.io, but some optimization never hurts anyone but the coder.

Oh I see, fair point. Only problem I see is things that need to be saved beside stat boosts like maybe a unit's ability changes every 4 rounds. But I could just have another array to save those. I will consider for future projects. It will kill my motivation if I have to redo code now. Thx

No Prob. Not the first time I've made game code, so I'm a bit used to optimizing stuff like this.