bugfixes 1.6, battle lag, event crashes, mt. silver event (wip)

This commit is contained in:
infinitefusion
2021-10-03 14:01:09 -04:00
parent b51c2afcae
commit 26cc4c20ce
38 changed files with 103 additions and 11 deletions

View File

@@ -97,18 +97,26 @@ class AnimatedBitmap
@bitmap.bitmap = new_bitmap
end
def mirror
for x in 0..@bitmap.bitmap.width / 2
for y in 0..@bitmap.bitmap.height - 2
temp = @bitmap.bitmap.get_pixel(x, y)
newPix = @bitmap.bitmap.get_pixel((@bitmap.bitmap.width - x), y)
# def mirror
# for x in 0..@bitmap.bitmap.width / 2
# for y in 0..@bitmap.bitmap.height - 2
# temp = @bitmap.bitmap.get_pixel(x, y)
# newPix = @bitmap.bitmap.get_pixel((@bitmap.bitmap.width - x), y)
#
# @bitmap.bitmap.set_pixel(x, y, newPix)
# @bitmap.bitmap.set_pixel((@bitmap.bitmap.width - x), y, temp)
# end
# end
# end
@bitmap.bitmap.set_pixel(x, y, newPix)
@bitmap.bitmap.set_pixel((@bitmap.bitmap.width - x), y, temp)
end
end
def mirror
@bitmap.bitmap
end
end
#===============================================================================