赞 | 0 |
VIP | 0 |
好人卡 | 0 |
积分 | 1 |
经验 | 2860 |
最后登录 | 2016-6-18 |
在线时间 | 8 小时 |
Lv1.梦旅人
- 梦石
- 0
- 星屑
- 50
- 在线时间
- 8 小时
- 注册时间
- 2008-5-1
- 帖子
- 236
|
#===============================================================================
# MOG_Scene Title XAS Edition
#===============================================================================
class Scene_Title
def main
if $BTEST
battle_test
return
end
$data_actors = load_data("Data/Actors.rxdata")
$data_classes = load_data("Data/Classes.rxdata")
$data_skills = load_data("Data/Skills.rxdata")
$data_items = load_data("Data/Items.rxdata")
$data_weapons = load_data("Data/Weapons.rxdata")
$data_armors = load_data("Data/Armors.rxdata")
$data_enemies = load_data("Data/Enemies.rxdata")
$data_troops = load_data("Data/Troops.rxdata")
$data_states = load_data("Data/States.rxdata")
$data_animations = load_data("Data/Animations.rxdata")
$data_tilesets = load_data("Data/Tilesets.rxdata")
$data_common_events = load_data("Data/CommonEvents.rxdata")
$data_system = load_data("Data/System.rxdata")
$game_system = Game_System.new
s1 = "New Game"
s2 = "Continue"
s3 = "Shutdown"
@command_window = Window_Command.new(192, [s1, s2, s3])
@command_window.visible = false
@com = Sprite.new
@com.bitmap = RPG::Cache.title("Com_01") rescue nil
@com.z = 11
@com.x = -360
@com.y = 60
@com.opacity = 0
@continue_enabled = false
@mnpan = Plane.new
@mnpan.bitmap = RPG::Cache.title("Title_Pano01")
@mnpan.z = 1
@mnpan2 = Plane.new
@mnpan2.bitmap = RPG::Cache.fog("001-Fog01",0)
@mnpan2.opacity = 120
@mnpan2.blend_type = 1
@mnpan2.z = 3
@mnlay = Sprite.new
@mnlay.bitmap = RPG::Cache.title("Title")
@mnlay.z = 10
@mnlay.zoom_x = 3
@mnlay.opacity = 0
for i in 0..3
if FileTest.exist?("Save#{i+1}.rxdata")
@continue_enabled = true
end
end
if @continue_enabled
@command_window.index = 1
else
@command_window.disable_item(1)
end
$game_system.bgm_play($data_system.title_bgm)
Audio.me_stop
Audio.bgs_stop
Graphics.transition(1, "Graphics/Transitions/004-Blind04")
loop do
Graphics.update
Input.update
update
if $scene != self
break
end
end
for i in 1..20
@mnpan.zoom_x -= 0.01
@mnpan.zoom_y -= 0.01
@mnpan.ox -= 20
@mnpan.oy -= 10
@mnpan2.opacity += 5
@mnpan2.ox += 5
@mnpan2.oy += 5
@mnpan2.zoom_x += 0.01
@mnpan2.zoom_y += 0.01
@mnlay.opacity -= 15
@mnlay.zoom_x += 0.01
@com.opacity -= 15
@com.x -= 10
Graphics.update
end
Graphics.freeze
@command_window.dispose
@mnlay.bitmap.dispose
@mnlay.bitmap = nil
@mnlay.dispose
@mnlay = nil
@mnpan.bitmap.dispose
@mnpan.bitmap = nil
@mnpan.dispose
@mnpan = nil
@mnpan2.bitmap.dispose
@mnpan2.bitmap = nil
@mnpan2.dispose
@mnpan2 = nil
@com.bitmap.dispose
@com.bitmap
@com.dispose
@com = nil
end
def update
if @mnlay.zoom_x > 1
@mnlay.zoom_x -= 0.1
@mnlay.opacity += 5
@com.x += 10
@com.opacity += 5
elsif @mnlay.zoom_x <= 1
@mnlay.zoom_x = 1
@com.x = -150
@mnlay.opacity = 255
@com.opacity = 255
end
@mnpan.ox += 1
@mnpan2.ox -= 1
@mnpan2.oy += 1
@command_window.update
case @command_window.index
when 0
@com.bitmap = RPG::Cache.title("Com_01") rescue nil
when 1
@com.bitmap = RPG::Cache.title("Com_02") rescue nil
when 2
@com.bitmap = RPG::Cache.title("Com_03") rescue nil
end
if Input.trigger?(Input::C)
case @command_window.index
when 0
command_new_game
when 1
command_continue
when 2
command_shutdown
end
end
end
def command_shutdown
$game_system.se_play($data_system.decision_se)
Audio.bgm_fade(800)
Audio.bgs_fade(800)
Audio.me_fade(800)
$scene = nil
end
end
这是那个xak里面个开头脚本 我脚本什么超菜 只看了说明里面的基础篇 于是放进去之后游戏发现开头的是变了 可是按开始游戏就出现脚本错误 然后我乱摸 把一些个人认为没用的删掉 能进去了……现在我想不让背景图动 要修改哪里…… |
|