Developer Tools

Developer Tutorials

From time to time tutorials are posted on the Twice Circled blog with an aim to share skills/knowledge to hopefully help other developers. They are summarised below:

  1. How to make a starfield for a game on Paint.Net
  2. DIY Accounting for Freelancers

Sprite Batcher

Sprite Batcher is a library for Android that lets you draw 2D sprites quickly and easily using OpenGL. It’s not an entire game engine, it simply handles the final step in the graphics drawing process.

Sprite Batcher, tool for drawing 2D sprites on Android using OpenGL. Batch your sprites together efficiently using this useful utility library. A tool for sprite batch on Android for developers.

Get it!

SpriteBatcher is OpenSource and is free to use for any purpose including commercial. It is hosted on Github here.

Features

  1. Draw sprites with OpenGL with less than 10 lines of code
  2. Batch together your sprites to optimise performance
  3. Range of draw methods including rotation and scaling options
  4. ARGB colour transformations (Warning: Reduces efficiency)
  5. Generate sprite atlas from font for drawing text
  6. Draw point to point lines with repeated patterns (1D)
  7. Draw tiled texture with repeated pattern (2D) ****EXPERIMENTAL****

Tutorial Videos

To get you started check out the following videos:

Video tutorial 1 – Getting started

Video tutorial 2 – Layering your sprites correctly

Video tutorial 3 – Drawing text

Game Analytics Wrapper

Twice Circled created the Android wrapper for the service provided by GameAnalytics.

The service lets you track the usage of your game by logging anonymous events with their webserver. You then log-in and use the Game Analytics dashboard to analyse your data and create metrics.

The wrapper created by Twice Circled helps you get started with Game Analytics as fast as possible, hiding all the nitty-gritty interface with the webserver behind the scenes. It also performs the following nifty tricks:

  • Saves events locally while there is no internet connection available
  • Automatically batches events together into arrays of JSON to reduce the total number of post commands required
  • Automatically logs unhandled exceptions
  • Semi-automated logging of average FPS
  • Manual batching

The wrapper is open source so you can check it out and get it from the public repo on Github.