src/TankWars/Engine.java
//load images from resources directory then add to array that holds them
load images from resources directory then add to array that holds them
load images from resources directory then add to array that holds them
public void init(){
	try {
	    background = ImageIO.read(GameWorld.class.getResource("/TankWars/resources/Background.bmp"));
	    tank = ImageIO.read(GameWorld.class.getResource("/TankWars/resources/Tank1.png"));
	    payload = ImageIO.read(GameWorld.class.getResource("/TankWars/resources/Payload.png"));
	    nWalls = ImageIO.read(GameWorld.class.getResource("/TankWars/resources/Wall1.gif"));
	    bWalls = ImageIO.read(GameWorld.class.getResource("/TankWars/resources/Wall2.gif"));
	} catch (IOException ex) {
	    Logger.getLogger(Engine.class.getName()).log(Level.SEVERE, null, ex);
	}
    }
public void init ( ) { try { background = ImageIO . read ( GameWorld . class . getResource ( "/TankWars/resources/Background.bmp" ) ) ; tank = ImageIO . read ( GameWorld . class . getResource ( "/TankWars/resources/Tank1.png" ) ) ; payload = ImageIO . read ( GameWorld . class . getResource ( "/TankWars/resources/Payload.png" ) ) ; nWalls = ImageIO . read ( GameWorld . class . getResource ( "/TankWars/resources/Wall1.gif" ) ) ; bWalls = ImageIO . read ( GameWorld . class . getResource ( "/TankWars/resources/Wall2.gif" ) ) ; } catch ( IOException ex ) { Logger . getLogger ( Engine . class . getName ( ) ) . log ( Level . SEVERE , null , ex ) ; } }
load images from resources directory then add to array that holds them
load images from resources directory then add to array that holds them
//Normal walls //Breakable walls