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:
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.
SpriteBatcher is OpenSource and is free to use for any purpose including commercial. It is hosted on Github here.
- Draw sprites with OpenGL with less than 10 lines of code
- Batch together your sprites to optimise performance
- Range of draw methods including rotation and scaling options
- ARGB colour transformations (Warning: Reduces efficiency)
- Generate sprite atlas from font for drawing text
- Draw point to point lines with repeated patterns (1D)
- Draw tiled texture with repeated pattern (2D) ****EXPERIMENTAL****
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.