diff --git a/Military-Hero-Core/src/com/annimon/militaryhero/ImageLoader.java b/Military-Hero-Core/src/com/annimon/militaryhero/ImageLoader.java new file mode 100644 index 0000000..c9f267e --- /dev/null +++ b/Military-Hero-Core/src/com/annimon/militaryhero/ImageLoader.java @@ -0,0 +1,22 @@ +package com.annimon.militaryhero; + +import com.annimon.jecp.Image; +import java.io.IOException; + +/** + * @author aNNiMON + */ +public class ImageLoader { + + public static final String + SNIPER_AIM = "sniper_aim.png"; + + + public static Image load(String name) { + try { + return Image.createImage("res/" + name); + } catch (IOException ex) { + return null; + } + } +}