赞 | 3 |
VIP | 1 |
好人卡 | 40 |
积分 | 1 |
经验 | 93188 |
最后登录 | 2020-7-27 |
在线时间 | 1379 小时 |
Lv1.梦旅人
- 梦石
- 0
- 星屑
- 76
- 在线时间
- 1379 小时
- 注册时间
- 2012-7-5
- 帖子
- 1698
|
随手丢一个logo脚本, 免得LZ游戏一打开就没人玩
先将此图放到[游戏目录/Graphics/Titles/]
里面
- #==============================================================================
- # ★ Logo ★
- #------------------------------------------------------------------------------
- # - hyrious 2014-7-1
- #==============================================================================
- def showlogo(name, speed = 1)
- Graphics.freeze
- logo = Sprite.new
- logo.bitmap = RPG::Cache.title(name)
- logo.opacity = 0
- white = Sprite.new
- white.bitmap = Bitmap.new(640, 480)
- white.bitmap.fill_rect(white.bitmap.rect, Color.new(255, 255, 255))
- white.opacity = 0
- Graphics.transition(1)
- step = ((logo.bitmap.height - 480) * 2 / 5 - 9) / speed
- step.times{ logo.y -= speed;logo.opacity += speed; Graphics.update }
- (step/2).times{ logo.y -= speed; Graphics.update }
- step.times do
- logo.y -= speed
- logo.opacity -= speed
- white.opacity += speed*2
- Graphics.update
- end
- Graphics.freeze
- logo.bitmap.dispose
- white.bitmap.dispose
- logo.dispose
- white.dispose
- Graphics.transition(1)
- end
- showlogo("logo", 2)
复制代码 |
|