Back to project page SnowLand.
The source code is released under:
GNU General Public License
If you think the Android project SnowLand 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 com.walrus.game; /* w w w. j a v a 2 s. c om*/ public class TileMatrixFactory { public static Tile[][] transformToTiles(int[][] level){ Tile[][] tiles = new Tile[level.length][level[0].length]; for(int i=0; i<level.length; i++){ for(int j=0; j<level[i].length; j++){ tiles[i][j] = new Tile(Assets.tiles[level[i][j]]); if(level[i][j]>10) tiles[i][j].setHeight(tiles[i][j].getHeight()-10); } } return tiles; } }