New answers tagged

0

I kind of cover this a little here. Let's see if I can expand it a bit for your situation. Firebase Realtime Database has a couple of features you'll want to investigate. The first is that, by default, it tries to cache everything locally. That means that if you listen to the ValueChanged event, you'll always get the cached value first (sometimes null) and ...


1

I ended up not "keeping the particles together" as I originally wanted because it made literally no sense computation-wise but using a bitmap of a white silhouette on a black background as a mask for each of the spaceship modules instead. A whole ship would be made of an array of those bitmaps stuck together. Whenever a module got hit I'd render an irregular ...


1

libGDX Json converts Enums to strings and therefore cannot serialize / de-serialize Map keys to anything but strings. To fix this, either... Use strings for keys in Maps (ObjectMap, HashMap ect.). Use GSON, which can serialize Enum Map Keys just fine. Write lots of special serialization / de-serialization code using a class that implements Json....


Top 50 recent answers are included