hitresult right file
-from ImageProcess.PrepareFrames.YImage import YImage
-
+from ImageProcess.PrepareFrames.YImage import YImage, YImages
+from ImageProcess.imageproc import change_size
hitprefix = "hit"
@@ -7,7 +7,7 @@ hitprefix = "hit"
def prepare_hitresults(scale):
scores_frames = {}
for x in [0, 50, 100]:
- img = YImage(hitprefix + str(x), scale, rotate=x == 0)
+ img = YImages(hitprefix + str(x), scale, delimiter="-", rotate=x == 0).frames[0]
scores_frames[x] = []
end = 125
start = 75
@@ -15,12 +15,11 @@ def prepare_hitresults(scale):
end = 125
start = 100
for y in range(start, end, -5):
- img.change_size(y / 100, y / 100)
- scores_frames[x].append(img.img)
+ a = change_size(img, y / 100, y / 100)
+ scores_frames[x].append(a)
for y in range(end, start, -2):
- img.change_size(y / 100, y / 100)
- a = img.img
+ a = change_size(img, y / 100, y / 100)
if x == 0:
a = a.rotate(-10 - (end - y) / 10)
scores_frames[x].append(a)
