mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-06 06:01:46 +00:00
bugfixes 1.6, battle lag, event crashes, mt. silver event (wip)
This commit is contained in:
@@ -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
|
||||
|
||||
#===============================================================================
|
||||
|
||||
Reference in New Issue
Block a user