How To Play?

Here’s a little on how some in-game controls and overlays work.

After we had the tiled map up and running, we thought about how the controls would work. Most of the TD games we’ve played had a pointer since it’s either on the PC or Xbox 360, so how would this work with a touch screen? Hmmm.

Following the same train of thought about dealing with player experience, we realized the necessity of a HUD (Heads-Up Display) as well. The player need to know how much health and coins they have, what wave of enemies they’re at, etc. We needed a system to deal with that as well.

Onwards!

Tiled Maps

libgdx contains built-in support for tiled maps.  If you look inside com.cmein.tilemap.utils, you will see several classes, none of which we wrote (thanks libgdx!).  If you open up TiledMapPacker.java, you’ll notice it has a runnable main method.  In this main method, there are only three lines that need to be edited to create a tiled map:


tmxFile = new File("data/tiledmaps/LEVEL2.tmx");
baseDir = new File("data/");
outputDir = new File("data/");

The file extension “.tmx” may be foreign to you; it is associated with “Tiled”, a program to help the process of making tiled maps (see http://www.mapeditor.org/).  The main method in TiledMapPacker takes the .tmx file and outputs two new files.

Continue reading

Architecture

In libgdx, the loading of the art and the game loop are all controlled in a single file.  For our project [source code], this is the ‘TileMap.java’ class located in com.cmein.tilemap.  This class is the top level loader and renderer; every other class in some way connects back to it.  Notice that tilemap extends the abstract class ApplicationListener.  It is this feature of libgdx that abstracts away the differences between the desktop application and the Android application.

Continue reading

Project Background

We first conceived of this project during winter break before our final semester at Brandeis University.  With no experience whatsoever in mobile applications or game development, we dove head first into an Android game.  Here are some of the preliminary decisions we made, as well as the reasoning behind them.

Continue reading

Hello.

This blog is a development-journal of our open-source Android game Splot Attacks. The game was created for an independent study course (COSI 98b) at Brandeis University. In this blog, you can read about why we chose the Android platform, how we conceptualized the game, what game development framework we chose, and the entire developmental process of Splot Attacks. Ultimately, we hope that this journal can serve as an introduction to writing Android games for amateur programmers.

Continue reading