src/TankWars/GameWorld.java
//load background, tanks, walls and other game objects
load background, tanks, walls and other game objects
load background tanks walls and other game objects
public void initResources() {
	try {
	    background = ImageIO.read(GameWorld.class.getResource("/TankWars/resources/Background2.png"));
	    tankImage1 = ImageIO.read(GameWorld.class.getResource("/TankWars/resources/Standard_Tank.png"));
	    tankImage2 = ImageIO.read(GameWorld.class.getResource("/TankWars/resources/Standard_Tank.png"));
	    nWalls = ImageIO.read(GameWorld.class.getResource("/TankWars/resources/Wall1.gif"));
	    bWalls = ImageIO.read(GameWorld.class.getResource("/TankWars/resources/Wall2.gif"));
	    bullet1 = ImageIO.read(GameWorld.class.getResource("/TankWars/resources/BulletBill.png"));
	    bullet2 = ImageIO.read(GameWorld.class.getResource("/TankWars/resources/BulletBill2.png"));
	    smallExplosion = ImageIO.read(GameWorld.class.getResource("/TankWars/resources/Explosion_small.gif"));
	    largeExplosion = ImageIO.read(GameWorld.class.getResource("/TankWars/resources/Explosion_large.gif"));
	    powerUp1 = ImageIO.read(GameWorld.class.getResource("/TankWars/resources/Herramienta.png"));
	    shield = ImageIO.read(GameWorld.class.getResource("/TankWars/resources/Shield1.gif"));
	    lives = ImageIO.read(GameWorld.class.getResource("/TankWars/resources/Heart.png"));
	} catch (IOException ex) {
	    ex.printStackTrace();
	}
    }
public void initResources ( ) { try { background = ImageIO . read ( GameWorld . class . getResource ( "/TankWars/resources/Background2.png" ) ) ; tankImage1 = ImageIO . read ( GameWorld . class . getResource ( "/TankWars/resources/Standard_Tank.png" ) ) ; tankImage2 = ImageIO . read ( GameWorld . class . getResource ( "/TankWars/resources/Standard_Tank.png" ) ) ; nWalls = ImageIO . read ( GameWorld . class . getResource ( "/TankWars/resources/Wall1.gif" ) ) ; bWalls = ImageIO . read ( GameWorld . class . getResource ( "/TankWars/resources/Wall2.gif" ) ) ; bullet1 = ImageIO . read ( GameWorld . class . getResource ( "/TankWars/resources/BulletBill.png" ) ) ; bullet2 = ImageIO . read ( GameWorld . class . getResource ( "/TankWars/resources/BulletBill2.png" ) ) ; smallExplosion = ImageIO . read ( GameWorld . class . getResource ( "/TankWars/resources/Explosion_small.gif" ) ) ; largeExplosion = ImageIO . read ( GameWorld . class . getResource ( "/TankWars/resources/Explosion_large.gif" ) ) ; powerUp1 = ImageIO . read ( GameWorld . class . getResource ( "/TankWars/resources/Herramienta.png" ) ) ; shield = ImageIO . read ( GameWorld . class . getResource ( "/TankWars/resources/Shield1.gif" ) ) ; lives = ImageIO . read ( GameWorld . class . getResource ( "/TankWars/resources/Heart.png" ) ) ; } catch ( IOException ex ) { ex . printStackTrace ( ) ; } }
load background, tanks, walls and other game objects
load background tanks walls and other game objects