|
|
@ -1,8 +1,8 @@
|
|
|
|
package com.example.tankbattle;
|
|
|
|
package com.example.tankbattle;
|
|
|
|
|
|
|
|
|
|
|
|
import javax.imageio.ImageIO;
|
|
|
|
|
|
|
|
import java.awt.image.BufferedImage;
|
|
|
|
import java.awt.image.BufferedImage;
|
|
|
|
import java.io.IOException;
|
|
|
|
import java.io.IOException;
|
|
|
|
|
|
|
|
import javax.imageio.ImageIO;
|
|
|
|
|
|
|
|
|
|
|
|
public class ResourceMgr {
|
|
|
|
public class ResourceMgr {
|
|
|
|
public static BufferedImage tankL, tankU, tankR, tankD;
|
|
|
|
public static BufferedImage tankL, tankU, tankR, tankD;
|
|
|
@ -19,8 +19,8 @@ public class ResourceMgr {
|
|
|
|
bulletU = ImageIO.read(ResourceMgr.class.getClassLoader().getResourceAsStream("images/bulletU.gif"));
|
|
|
|
bulletU = ImageIO.read(ResourceMgr.class.getClassLoader().getResourceAsStream("images/bulletU.gif"));
|
|
|
|
bulletR = ImageIO.read(ResourceMgr.class.getClassLoader().getResourceAsStream("images/bulletR.gif"));
|
|
|
|
bulletR = ImageIO.read(ResourceMgr.class.getClassLoader().getResourceAsStream("images/bulletR.gif"));
|
|
|
|
bulletD = ImageIO.read(ResourceMgr.class.getClassLoader().getResourceAsStream("images/bulletD.gif"));
|
|
|
|
bulletD = ImageIO.read(ResourceMgr.class.getClassLoader().getResourceAsStream("images/bulletD.gif"));
|
|
|
|
} catch (IOException exception) {
|
|
|
|
} catch (IOException e) {
|
|
|
|
exception.printStackTrace();
|
|
|
|
e.printStackTrace();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|