コード例 #1
0
 @Override
 public void loadImages() {
   if (redImages == null) redImages = Assets.loadImages(imageFormatInfo.getRedId(), 0, 0, 1, 1);
   if (orangeImages == null)
     orangeImages = Assets.loadImages(imageFormatInfo.getOrangeId(), 0, 0, 1, 1);
   if (blueImages == null) blueImages = Assets.loadImages(imageFormatInfo.getBlueId(), 0, 0, 1, 1);
   if (greenImages == null)
     greenImages = Assets.loadImages(imageFormatInfo.getGreenId(), 0, 0, 1, 1);
   if (whiteImages == null)
     whiteImages = Assets.loadImages(imageFormatInfo.getWhiteId(), 0, 0, 1, 1);
 }
コード例 #2
0
 public static Image[] getBlueImages() {
   if (blueImages == null) {
     blueImages = Assets.loadImages(imageFormatInfo.getBlueId(), 3, 4, 0, 0, 1, 1);
   }
   return blueImages;
 }