O'Reilly logo

Beginning Android 4 Games Development by Robert Green, Mario Zechner

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

The Assets Class

Well, You've done this before, so don't expect any surprises. Listing 12–1 shows you the code of the Assets class.

Listing 12–1. Assets.java, Loading and Storing Assets as Always

package com.badlogic.androidgames.droidinvaders; import com.badlogic.androidgames.framework.Music; import com.badlogic.androidgames.framework.Sound; import com.badlogic.androidgames.framework.gl.Animation; import com.badlogic.androidgames.framework.gl.Font; import com.badlogic.androidgames.framework.gl.ObjLoader; import com.badlogic.androidgames.framework.gl.Texture; import com.badlogic.androidgames.framework.gl.TextureRegion; import com.badlogic.androidgames.framework.gl.Vertices3; import com.badlogic.androidgames.framework.impl.GLGame; public class ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required