Package game.entities

Examples of game.entities.Terrain


            }
        } catch( Exception e) {e.printStackTrace();}

          for( int row = 0; row < currLevel.length; row++ ) {
            for( int col = 0; col < currLevel[row].length; col++ ) {
              map[row][col] = new Terrain(
                col*GameSettings.BLOCK_SIZE,
                row*GameSettings.BLOCK_SIZE,
                GameSettings.BLOCK_SIZE,
                GameSettings.BLOCK_SIZE,
                TerrainType.getType(currLevel[row][col]));
View Full Code Here


     
      return rowAndCol;
    }
   
    public void drawMap(Graphics2D g) {
      Terrain t;
      for( int row = 0; row < map.length; row++ ) {
        for( int col = 0; col < map[row].length; col++ ) {
          t = map[row][col];
          g.setColor(t.color);
          g.fillRect(col*GameSettings.BLOCK_SIZE,
View Full Code Here

TOP

Related Classes of game.entities.Terrain

Copyright © 2018 www.massapicom. 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.