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
复制代码
本贴来自国际rpgmaker官方论坛作者:Genesis7处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址: https://forums.rpgmakerweb.com/threads/game-over-img-stretch.108821/ |