Tag Archive for Silver Dollar Shooter

BitmapFont can Increase Your LibGDX Load Time

I noticed that my game was making a lot of calls to StringTokenizer and other String-related classes during significant portions of its load time. My game spent nearly 50% of its load time chugging away at Strings somewhere. This perplexed me for weeks until I noticed some calls to BitmapFont. I knew that BitmapFont had some expensive operations but I didn’t realize that just creating a new instance is very expensive.

I went about consolidating all the BitmapFont instances into one shared instance in the main Game class. I then passed the reference to this instance into the constructors for whatever classes needed to write text to the screen. Going from 4 instances of BitmapFont to just 1 shaved about 4 seconds off the load time. That’s a huge improvement when my game used to take 8 seconds to load on my Evo 4G.

So if method profiling yields several groups of StringTokenizer calls lasting around 1-2 seconds during your game’s loading phase, check if you are using more than one instance of BitmapFont. If all of your text uses the same font style and size, try using one shared instance.

Gesture-Based Reloading Coming Soon

I’m about to add gesture-based reloading to Silver Dollar Shooter. I’m almost done tweaking some parameters and so far, it’s really fun. The update will come in the next few days.

Silver Dollar Shooter Free v1.0 Released

I decided to release a free, ad-supported version of my new game. If you like it, please consider buying the ad-free version.

Silver Dollar Shooter

Silver Dollar Shooter v1.0 Released

I just published my first game!

Silver Dollar Shooter is a simple shooting gallery-style arcade game. Simply shoot the coins when they pop up. See how many dollars you can hit! Be careful, you can only miss 4 coins before the game ends.

Please be sure to send me any feedback you may have. You can email me at feedback@agalsoftware.com or leave a comment on my Market page.

Silver Dollar Shooter