Back to project page TileArena.
The source code is released under:
MIT License
If you think the Android project TileArena listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package game.tile.arena.world; /*from w w w .j av a2 s.c o m*/ import com.badlogic.gdx.graphics.g2d.SpriteBatch; import game.tile.arena.sprite.Image; import game.tile.arena.util.Position; public enum Tile { GRASS("grass"); Image sprite; Tile(String file) { sprite = new Image(file); } public void render(SpriteBatch batch, Position pos) { sprite.renderNoCenter(batch, pos, 4); } }