Game Over Img Stretch

Stretch's the game over png to fit

No credit needed but you should thank TDS his/her battleback and title stretch inspired this.

Code:
class Scene_Gameover

  def create_background
    @sprite = Sprite.new
    @sprite.bitmap = Bitmap.new(Graphics.width, Graphics.height)
    background = Cache.system("GameOver")
    screen = Rect.new(0, 0, Graphics.width, Graphics.height)
    @sprite.bitmap.stretch_blt(screen, background, background.rect)
    center_sprite(@sprite)
  end
 
  def center_sprite(sprite)
    sprite.ox = sprite.bitmap.width / 2
    sprite.oy = sprite.bitmap.height / 2
    sprite.x = Graphics.width / 2
    sprite.y = Graphics.height / 2
  end

end

Original thread: https://forums.rpgmakerweb.com/threads/game-over-img-stretch.108821/