yeah, it works in chrome perfectly. my guess is that safari doesn't support some JS/HTML5 features.
vivri
@vivri
Posts made by vivri
-
RE: 3 Bugs
-
Are there any planned breaking changes in future versions?
I was wondering if it makes sense to invest in trying to come up with good game libraries at the moment. Are there any upcoming breaking-changes that you know of or suspect?
-
3 Bugs
1) When signed in, the "game" section redirects to some empty "badge" every time.
2) When in profile, password is always "unset".
3) Cannot change password. -
RE: Small snippet to clear the memory of dead creeps.
@avdg_ - i understand what you mean, but i think that both for clarity and runtime/memory there can be a separate toplevel collection of dead creeps. This way, you won't have to iterate over all of them to find out who's dead, and you'll be able to set some flag that keeps your dead creeps in mem for several ticks. e.g.:
SomeConfig.deadCreepsRemainFor = 1 // ticks
DeadCreeps.forEach (function(creep) { buryWithHonor (creep) })This way, you could extract whatever info you wanted about your creep and let the engine do the creep decomposition
-
RE: Small snippet to clear the memory of dead creeps.
Thanks for the tip! but shouldn't this be a game-engine-level thing? there's probably a very limited need to keep tally of dead units, and keeping them in mem shouldn't be the default IMO.