mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-07 21:24:59 +00:00
Many more Rubocop-inspired code improvements
This commit is contained in:
@@ -544,7 +544,6 @@ module Transitions
|
||||
end
|
||||
|
||||
def set_up_timings
|
||||
time_between_zooms = (@duration - TIME_TO_ZOOM) * 2 / (TOTAL_SPRITES - 1)
|
||||
for j in 0...NUM_SPRITES_Y
|
||||
for i in 0...NUM_SPRITES_X
|
||||
idx_from_start = j * NUM_SPRITES_X + i # Top left -> bottom right
|
||||
@@ -1182,7 +1181,7 @@ module Transitions
|
||||
for i in 0...4
|
||||
b = [@black_1_bitmap, @black_2_bitmap, @black_3_bitmap, @black_4_bitmap][i]
|
||||
@sprites[i] = new_sprite((i == 1) ? 0 : Graphics.width / 2, (i == 2) ? 0 : Graphics.height / 2, b,
|
||||
(i % 2 == 0) ? b.width / 2 : 0, (i % 2 == 0) ? 0 : b.height / 2)
|
||||
(i.even?) ? b.width / 2 : 0, (i.even?) ? 0 : b.height / 2)
|
||||
@sprites[i].zoom_x = 0.0 if i.even?
|
||||
@sprites[i].zoom_y = 0.0 if i.odd?
|
||||
@sprites[i].visible = false
|
||||
|
||||
Reference in New Issue
Block a user