Advertisement
DrDhoom

[RGSS3] Resize Battleback

Oct 25th, 2014
261
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.60 KB | None | 0 0
  1. class Spriteset_Battle
  2.   def battleback1_bitmap
  3.     if battleback1_name      
  4.       bitmap = Bitmap.new(Graphics.width,Graphics.height)
  5.       bit = Cache.battleback1(battleback1_name)
  6.       bitmap.stretch_blt(bitmap.rect, bit, bit.rect)
  7.       return bitmap
  8.     else
  9.       create_blurry_background_bitmap
  10.     end
  11.   end
  12.  
  13.   def battleback2_bitmap
  14.     if battleback2_name
  15.       bitmap = Bitmap.new(Graphics.width,Graphics.height)
  16.       bit = Cache.battleback2(battleback2_name)
  17.       bitmap.stretch_blt(bitmap.rect, bit, bit.rect)
  18.       return bitmap
  19.     else
  20.       Bitmap.new(1, 1)
  21.     end
  22.   end
  23. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement