Examples of GrassTile


Examples of com.coffeerpg.tiles.GrassTile

 
  // insert a tile of type into terrain array
  private void insertTile(int row, int col, int type) {
    switch (type) {
    case GRASS:
      terrain[row][col] = new GrassTile(row * TILE_SIZE, col * TILE_SIZE, type);
      break;
    case GRASSTL:
      terrain[row][col] = new GrassTile(row * TILE_SIZE, col * TILE_SIZE, type);
      break;
    case GRASSTC:
      terrain[row][col] = new GrassTile(row * TILE_SIZE, col * TILE_SIZE, type);
      break;
    case GRASSTR:
      terrain[row][col] = new GrassTile(row * TILE_SIZE, col * TILE_SIZE, type);
      break;
    case GRASSML:
      terrain[row][col] = new GrassTile(row * TILE_SIZE, col * TILE_SIZE, type);
      break;
    case GRASSMR:
      terrain[row][col] = new GrassTile(row * TILE_SIZE, col * TILE_SIZE, type);
      break;
    case GRASSBL:
      terrain[row][col] = new GrassTile(row * TILE_SIZE, col * TILE_SIZE, type);
      break;
    case GRASSBC:
      terrain[row][col] = new GrassTile(row * TILE_SIZE, col * TILE_SIZE, type);
      break;
    case GRASSBR:
      terrain[row][col] = new GrassTile(row * TILE_SIZE, col * TILE_SIZE, type);
      break;
    case WATER:
      terrain[row][col] = new WaterTile(m, row * TILE_SIZE, col * TILE_SIZE);
      break;
    case TREE:
View Full Code Here

Examples of com.thecherno.cherno.engine.GrassTile

    }
  }) });

  private void levels() {
    test = new TiledLevel("res/levels/level.png");
    test.addTileCode(0xffffff, new GrassTile(grass.getWidth(), grass.getHeight(), grass));
    test.setTileSize(32);
    test.addTileCode(0xff00ff, new RockTile(rock));
    test.add(player);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.