赞 | 0 |
VIP | 0 |
好人卡 | 1 |
积分 | 1 |
经验 | 515 |
最后登录 | 2014-2-17 |
在线时间 | 17 小时 |
Lv1.梦旅人
- 梦石
- 0
- 星屑
- 50
- 在线时间
- 17 小时
- 注册时间
- 2011-3-1
- 帖子
- 6
|
本帖最后由 catyly 于 2012-4-8 16:55 编辑
脚本原帖:http://rpg.blue/thread-207998-1-1.html
这个脚本有很棒的动态效果,可惜就是不支持一般的鼠标脚本…不知怎么的点新游戏、继续、退出没反应,按空格键继续那个鼠标点击倒是认了……
研究了半天也不知道怎么改…LZ或哪位大大能教下怎么改成鼠标可以支持模式么……万谢!我是新人……没什么资金…希望能关照一下哈
PS:鼠标脚本用的是鼠标响应事件的那个…不知道需不需要改哈,需要我可以贴上来- #==============================================================================
- # ■ Scene_Title
- #------------------------------------------------------------------------------
- # 处理标题画面的类。
- #==============================================================================
- module TPBT
- #自动全屏
- FULL_SCREEN = true
- #Logo 图片名字.
- LOGO_PIC = "logo"
- #Logo 时间.
- LOGO_TIME = 200
- #Logo 音效.
- LOGO_ME = "花标"
- #设置游戏的帧速率(默认40FPS)。
- PER = 40
- #设置有无随机播放音乐。
- RAND_MUSIC = true
- #设置随机播放音乐名字。
- MUSIC1 = "蝶飞花舞"
- MUSIC2 = "蝶飞花舞"
- MUSIC3 = "蝶飞花舞"
- #设置标题有无背景音乐。
- BGS_ON = false
- #设置标题背景音乐名字。
- BGS = "蝶飞花舞"
- #设置BGS音量的大小。
- BGS_VOL = 10
- #渐变过渡类型。
- TRANS_TITLE = "Tran01"
- #渐变过渡时间。
- TRANS_TIME = 60
- #(按任意键)进入选项菜单。
- T_B = "按空格键开始"
- #(按任意键)字体大小。
- T_B_FONT = 28
- #(按任意键)文字水平位置。
- T_B_X = 250
- #(按任意键)文字垂直位置。
- T_B_Y = 300
- #(按任意键)的音效。
- T_B_SE = "男僵尸02"
- #启用反向放大。
- BACK_ZOOM = true
- #选项菜单图片的必须标有3张,Com_01 Com_02 Com_03
- COM = "Com"
- #-----------------
- # 背景图片
- #-----------------
- PIC_FD = "Back"#图片名称。
- PIC_FD_OX = 1 #水平方向移动速度。
- PIC_FD_OY = 0 #垂直方向的运动速度。
- PIC_FD_PRIOR = 1 #图片优先度。
- PIC_FD_OPA = 255 #透明度。
- PIC_FD_BLEND = 0 #混合类型。
- #-----------------
- # 标题图片
- #-----------------
- PIC_TEXTO = "Texto"#图片名称。
- PIC_TEXTO_OX = 1 #水平方向移动速度。
- PIC_TEXTO_OY = 3 #垂直方向的运动速度。
- PIC_TEXTO_OPA = 0 #在首页的透明度。
- PIC_TEXTO_PRIOR = 4 #图片优先度。
- PIC_TEXTO_BLEND = 0 #混合类型。
- #-----------------
- # 图片 1
- #-----------------
- PIC_FOG1 = "Fog01" #图片名称。
- PIC_FOG_RAND = false #是否启用风向系统。
- PIC_FOG_MOV = 100 #经过多少时间就改变方向。
- PIC_FOG_OX_01 = -1 #水平方向移动速度。
- PIC_FOG_OY_01 = 0 #垂直方向的运动速度。
- PIC_FOG_OX_02 = 0 #改变后的水平方向移动速度。
- PIC_FOG_OY_02 = 0 #改变后的垂直方向的运动速度。
- PIC_FOG1_PRIOR = 7 #图片优先度。
- PIC_FOG1_BLEND = 0 #混合类型。
- PIC_FOG1_ZOOMX = 1 #水平放大图像。
- PIC_FOG1_ZOOMY = 1 #垂直放大图像。
- PIC_FOG1_OPA = 255 #透明度。
- #-----------------
- # 图片 2
- #-----------------
- PIC_FOG2 = "Fog02" #图片名称
- PIC_FOG2_RAND = true #是否启用风向系统。
- PIC_FOG2_MOV = 100 #经过多少时间就改变方向。
- PIC_FOG2_OX_01 = 3 #水平方向移动速度。
- PIC_FOG2_OY_01 = 3 #垂直方向的运动速度。
- PIC_FOG2_OX_02 = -3 #改变后的水平方向移动速度。
- PIC_FOG2_OY_02 = 3 #改变后的垂直方向的运动速度。
- PIC_FOG2_PRIOR = 10 #图片优先度。
- PIC_FOG2_BLEND = 1 #混合类型。
- PIC_FOG2_ZOOMX = 1 #水平放大图像。
- PIC_FOG2_ZOOMY = 1 #垂直放大图像。
- PIC_FOG2_OPA = 50 #透明度。
- #-----------------
- # 图片 3
- #-----------------
- PIC_FOG3 = "Fog03" #图片名称.
- PIC_FOG3_RAND = false #是否启用风向系统。
- PIC_FOG3_MOV = 100 #经过多少时间就改变方向。
- PIC_FOG3_OX_01 = 3 #水平方向移动速度。
- PIC_FOG3_OY_01 = 0 #垂直方向的运动速度。
- PIC_FOG3_OX_02 = -3 #改变后的水平方向移动速度。
- PIC_FOG3_OY_02 = 3 #改变后的垂直方向的运动速度。
- PIC_FOG3_PRIOR = 7 #图片优先度。
- PIC_FOG3_BLEND = 0 #混合类型。
- PIC_FOG3_ZOOMX = 1 #水平放大图像。
- PIC_FOG3_ZOOMY = 1 #垂直放大图像。
- PIC_FOG3_OPA = 255 #透明度。
- #-----------------
- # 流星 1
- #-----------------
- PIC_LEAF1 = "Leaf01" #图片名称.
- PIC_LEAF1_RAND = true #是否启用风向系统。
- PIC_LEAF1_MOV = 200 #经过多少时间就改变方向。
- PIC_LEAF1_OX1 = 1 #水平方向移动速度。
- PIC_LEAF1_OY1 = 1 #垂直方向的运动速度。
- PIC_LEAF1_OX2 = 1 #改变后的水平方向移动速度。
- PIC_LEAF1_OY2 = 1 #改变后的垂直方向的运动速度。
- PIC_LEAF1_PRIOR = 6 #图片优先度。
- PIC_LEAF1_BLEND = 0 #混合类型。
- PIC_LEAF1_ZOOMX = 1 #水平放大图像。
- PIC_LEAF1_ZOOMY = 1 #垂直放大图像。
- PIC_LEAF1_OPA = 255 #透明度。
- #-----------------
- # 流星 2
- #-----------------
- PIC_LEAF2 = "Leaf02" #图片名称.
- PIC_LEAF2_RAND = true #是否启用风向系统。
- PIC_LEAF2_MOV = 150 #经过多少时间就改变方向。
- PIC_LEAF2_OX1 = 2 #水平方向移动速度。
- PIC_LEAF2_OY1 = 2 #垂直方向的运动速度。
- PIC_LEAF2_OX2 = 2 #改变后的水平方向移动速度。
- PIC_LEAF2_OY2 = 2 #改变后的垂直方向的运动速度。
- PIC_LEAF2_PRIOR = 8 #图片优先度。
- PIC_LEAF2_BLEND = 0 #混合类型。
- PIC_LEAF2_ZOOMX = 1 #水平放大图像。
- PIC_LEAF2_ZOOMY = 1 #垂直放大图像。
- PIC_LEAF2_OPA = 255 #透明度。
- #-------------------------------------------------------------------------------
- #背景运动设置
- #-------------------------------------------------------------------------------
- #点击选项菜单时,是否改变运动方式。
- DIS_MOV = false #true
- #运动时间
- DIS_TIME = 80
- #减少图像的透明度。
- DIS_PIC1_OPA = 0
- DIS_PIC2_OPA = 5
- DIS_PIC3_OPA = 0
- DIS_PIC4_OPA = 0
- DIS_PIC5_OPA = 0
- DIS_PIC6_OPA = 0
- DIS_PIC_LEAF1_OPA = 5
- DIS_PIC_LEAF2_OPA = 5
- #移动图像
- DIS_PIC1_OX = -6
- DIS_PIC1_OY = 0
- DIS_PIC2_OX = 0
- DIS_PIC2_OY = 0
- DIS_PIC3_OX = 0
- DIS_PIC3_OY = 0
- DIS_PIC4_OX = 0
- DIS_PIC4_OY = 0
- DIS_PIC5_OX = 4
- DIS_PIC5_OY = 0
- DIS_PIC6_OX = 0
- DIS_PIC6_OY = 0
- DIS_PIC_LEAF1_OX = 0
- DIS_PIC_LEAF1_OY = 0
- DIS_PIC_LEAF2_OX = 0
- DIS_PIC_LEAF2_OY = 0
- #变焦放大、缩小
- DIS_PIC1_ZOOMX = 0.02
- DIS_PIC1_ZOOMY = 0.02
- DIS_PIC2_ZOOMX = 0
- DIS_PIC2_ZOOMY = 0
- DIS_PIC3_ZOOMX = 0
- DIS_PIC3_ZOOMY = 0
- DIS_PIC4_ZOOMX = 0
- DIS_PIC4_ZOOMY = 0
- DIS_PIC5_ZOOMX = 0.004
- DIS_PIC5_ZOOMY = 0.004
- DIS_PIC6_ZOOMX = 0
- DIS_PIC6_ZOOMY = 0
- DIS_PIC_LEAF1_ZOOMX = 0
- DIS_PIC_LEAF1_ZOOMY = 0
- DIS_PIC_LEAF2_ZOOMX = 0
- DIS_PIC_LEAF2_ZOOMY = 0
- end
- #===============================================================================
- # Scene Title
- #===============================================================================
- class Scene_Title
- def main
- if $BTEST
- battle_test
- return
- end
- $full_screen += 1
- if TPBT::FULL_SCREEN == true and $full_screen == 1
- $showm = Win32API.new 'user32', 'keybd_event', %w(l l l l), ' '
- $showm.call(18,0,0,0)
- $showm.call(13,0,0,0)
- $showm.call(13,0,2,0)
- $showm.call(18,0,2,0)
- 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 = ""
- s2 = ""
- s3 = ""
- @command_window = Window_Command.new(160, [s1, s2, s3])
- @command_window.opacity = 0
- @command_window.x = 0 - @command_window.width / 2
- @command_window.y = 0
- @command_window.visible = false
- @command_window.active = false
- @mb01 = Plane.new
- @mb01.bitmap = RPG::Cache.title(TPBT::PIC_FD)
- @mb01.opacity = TPBT::PIC_FD_OPA
- @mb01.z = TPBT::PIC_FD_PRIOR
- @mb01.blend_type = TPBT::PIC_FD_BLEND
- @mb02 = Plane.new
- @mb02.bitmap = RPG::Cache.title(TPBT::PIC_TEXTO)
- @mb02.z = TPBT::PIC_TEXTO_PRIOR
- @mb02.opacity = TPBT::PIC_TEXTO_OPA
- @mb02.blend_type = TPBT::PIC_TEXTO_BLEND
- @mb03 = Plane.new
- @mb03.bitmap = RPG::Cache.title(TPBT::PIC_FOG1)
- @mb03.z = TPBT::PIC_FOG1_PRIOR
- @mb03.zoom_x = TPBT::PIC_FOG1_ZOOMX
- @mb03.zoom_y = TPBT::PIC_FOG1_ZOOMY
- @mb03.blend_type = TPBT::PIC_FOG1_BLEND
- @mb03.opacity = TPBT::PIC_FOG1_OPA
- @mb04 = Plane.new
- @mb04.bitmap = RPG::Cache.title(TPBT::PIC_FOG2)
- @mb04.z = TPBT::PIC_FOG2_PRIOR
- @mb04.zoom_x = TPBT::PIC_FOG2_ZOOMX
- @mb04.zoom_y = TPBT::PIC_FOG2_ZOOMY
- @mb04.blend_type = TPBT::PIC_FOG2_BLEND
- @mb04.opacity = TPBT::PIC_FOG2_OPA
- @mb05 = Plane.new
- @mb05.bitmap = RPG::Cache.title(TPBT::PIC_FOG3)
- @mb05.z = TPBT::PIC_FOG3_PRIOR
- @mb05.zoom_x = TPBT::PIC_FOG3_ZOOMX
- @mb05.zoom_y = TPBT::PIC_FOG3_ZOOMY
- @mb05.blend_type = TPBT::PIC_FOG3_BLEND
- @mb05.opacity = TPBT::PIC_FOG3_OPA
- @mb07 = Plane.new
- @mb07.bitmap = RPG::Cache.title(TPBT::PIC_LEAF1)
- @mb07.z = TPBT::PIC_LEAF1_PRIOR
- @mb07.zoom_x = TPBT::PIC_LEAF1_ZOOMX
- @mb07.zoom_y = TPBT::PIC_LEAF1_ZOOMY
- @mb07.blend_type = TPBT::PIC_LEAF1_BLEND
- @mb07.opacity = TPBT::PIC_LEAF1_OPA
- @mb08 = Plane.new
- @mb08.bitmap = RPG::Cache.title(TPBT::PIC_LEAF2)
- @mb08.z = TPBT::PIC_LEAF2_PRIOR
- @mb08.zoom_x = TPBT::PIC_LEAF2_ZOOMX
- @mb08.zoom_y = TPBT::PIC_LEAF2_ZOOMY
- @mb08.blend_type = TPBT::PIC_LEAF2_BLEND
- @mb08.opacity = TPBT::PIC_LEAF2_OPA
- @bot = Sprite.new
- @bot.bitmap = Bitmap.new(160,100)
- @bot.x = TPBT::T_B_X
- @bot.y = TPBT::T_B_Y
- @bot.z = 9999
- @bot.opacity = 0
- @bot.bitmap.font.size = TPBT::T_B_FONT
- @bot.bitmap.font.bold = true
- @bot.bitmap.draw_text(0, 20, 160, 64, TPBT::T_B)
- @bot2 = Sprite.new
- @bot2.bitmap = Bitmap.new(160,100)
- @bot2.x = TPBT::T_B_X
- @bot2.y = TPBT::T_B_Y
- @bot2.z = 9998
- @bot2.opacity = 0
- @bot2.bitmap.font.size = TPBT::T_B_FONT
- @bot2.bitmap.font.bold = true
- @bot2.color.set(0,0,0)
- @bot2.bitmap.draw_text(2, 22, 160, 64, TPBT::T_B)
- @com = Sprite.new
- @com.bitmap = RPG::Cache.title(TPBT::COM + "_01")
- @com.z = 10000
- @com.opacity = 0
- @com.y = 300
- @logo = Plane.new
- @logo.bitmap = RPG::Cache.title(TPBT::LOGO_PIC)
- @logo.z = 999999
- @logo.opacity = 0
- @time = 0
- @time_zoom = 0
- @time_music = 0
- @time_logo = TPBT::LOGO_TIME
- @logo_r = 0
- @rs = 0
- @mb01.visible = false
- @mb02.visible = false
- @mb03.visible = false
- @mb04.visible = false
- @mb05.visible = false
- @mb07.visible = false
- @mb08.visible = false
- @com.visible = false
- @logo.visible = true
- @continue_enabled = false
- 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
- Audio.bgm_stop
- Audio.me_stop
- Audio.bgs_stop
- if TPBT::BGS_ON == true
- Audio.bgs_play("Audio/BGS/" + TPBT::BGS, TPBT::BGS_VOL, 100)
- end
- Graphics.transition(TPBT::TRANS_TIME, "Graphics/Transitions/" + TPBT::TRANS_TITLE )
- loop do
- Graphics.update
- Input.update
- update
- if $scene != self
- break
- end
- end
- if TPBT::DIS_MOV == true
- for i in 1..TPBT::DIS_TIME
- @mb01.opacity -= TPBT::DIS_PIC1_OPA
- @mb02.opacity -= TPBT::DIS_PIC2_OPA
- @mb03.opacity -= TPBT::DIS_PIC3_OPA
- @mb04.opacity -= TPBT::DIS_PIC4_OPA
- @mb05.opacity -= TPBT::DIS_PIC5_OPA
- @mb07.opacity -= TPBT::DIS_PIC_LEAF1_OPA
- @mb08.opacity -= TPBT::DIS_PIC_LEAF2_OPA
- @com.opacity -= TPBT::DIS_PIC2_OPA
- @mb01.ox += TPBT::DIS_PIC1_OX
- @mb01.oy += TPBT::DIS_PIC1_OY
- @mb02.ox += TPBT::DIS_PIC2_OX
- @mb02.oy += TPBT::DIS_PIC2_OY
- @mb03.ox += TPBT::DIS_PIC3_OX
- @mb03.oy += TPBT::DIS_PIC3_OY
- @mb04.ox += TPBT::DIS_PIC4_OX
- @mb04.oy += TPBT::DIS_PIC4_OY
- @mb05.ox += TPBT::DIS_PIC5_OX
- @mb05.oy += TPBT::DIS_PIC5_OY
- @mb07.ox += TPBT::DIS_PIC_LEAF1_OX
- @mb07.oy += TPBT::DIS_PIC_LEAF1_OY
- @mb08.ox += TPBT::DIS_PIC_LEAF2_OX
- @mb08.oy += TPBT::DIS_PIC_LEAF2_OY
- @mb01.zoom_x += TPBT::DIS_PIC1_ZOOMX
- @mb01.zoom_y += TPBT::DIS_PIC1_ZOOMY
- @mb02.zoom_x += TPBT::DIS_PIC2_ZOOMX
- @mb02.zoom_y += TPBT::DIS_PIC2_ZOOMY
- @mb03.zoom_x += TPBT::DIS_PIC3_ZOOMX
- @mb03.zoom_y += TPBT::DIS_PIC3_ZOOMY
- @mb04.zoom_x += TPBT::DIS_PIC4_ZOOMX
- @mb04.zoom_y += TPBT::DIS_PIC4_ZOOMY
- @mb05.zoom_x += TPBT::DIS_PIC5_ZOOMX
- @mb05.zoom_y += TPBT::DIS_PIC5_ZOOMY
- @mb07.zoom_x += TPBT::DIS_PIC_LEAF1_ZOOMX
- @mb07.zoom_y += TPBT::DIS_PIC_LEAF1_ZOOMY
- @mb08.zoom_x += TPBT::DIS_PIC_LEAF2_ZOOMX
- @mb08.zoom_y += TPBT::DIS_PIC_LEAF2_ZOOMY
- @bot.opacity -= 10
- @bot2.opacity -= 10
- Graphics.update
- end
- end
- Graphics.freeze
- @command_window.dispose
- @mb01.dispose
- @mb02.dispose
- @mb03.dispose
- @mb04.dispose
- @mb05.dispose
- @mb07.dispose
- @mb08.dispose
- @bot.dispose
- @bot2.dispose
- @com.dispose
- @logo.dispose
- end
- def update
- @time_logo -= 1
- if @time_logo <= 0
- @time_logo = 0
- end
- if @logo.opacity < 30 and @logo_r == 1
- @logo.visible = false
- @logo.opacity = 0
- @logo.bitmap = RPG::Cache.title("")
- end
- if @bot.opacity < 30 and @command_window.active == true
- @bot.visible = false
- @bot2.visible = false
- @bot.bitmap.draw_text(0, 0, 32, 32,"")
- @bot2.bitmap.draw_text(0, 0, 32, 32,"")
- end
- if @logo_r == 0 and @logo.opacity <= 250
- @logo.opacity += 2
- elsif @time_logo <= 0
- @logo_r = 1
- @logo.opacity -= 2
- @mb01.visible = true
- @mb02.visible = true
- @mb03.visible = true
- @mb04.visible = true
- @mb05.visible = true
- @mb07.visible = true
- @mb08.visible = true
- @com.visible = true
- @bot.opacity += 2
- @bot2.opacity += 2
- Audio.me_fade(500)
- if @bot.opacity >= 255
- @bot.opacity = 255
- @bot2.opacity = 255
- end
- end
- if TPBT::RAND_MUSIC == true and @logo_r == 1 and @rs == 1
- @rs += 1
- case rand(3)
- when 0
- Audio.bgm_play("Audio/BGM/" + TPBT::MUSIC1, 100, 100)
- when 1
- Audio.bgm_play("Audio/BGM/" + TPBT::MUSIC2, 100, 100)
- when 2
- Audio.bgm_play("Audio/BGM/" + TPBT::MUSIC3, 100, 100)
- end
- else
- if @logo_r == 1 and @rs == 1
- $game_system.bgm_play($data_system.title_bgm)
- @rs += 1
- end
- end
- if @command_window.active == true
- @bot.opacity -= 5
- @bot2.opacity -= 5
- @bot.x -= 5
- @bot2.x += 5
- @com.opacity += 5
- if @com.y > 0
- @com.y -= 5
- elsif @com.y < 0
- @com.y = 0
- @com.opacity = 255
- end
- end
- r = rand(100) + 150
- g = rand(100) + 150
- b = rand(100) + 150
- @command_window.update
- @time += 2
- @time_zoom += 1
- if @time_zoom > 1000
- @time_zoom = 0
- end
- if @time_zoom > 500 and TPBT::BACK_ZOOM == true
- @mb01.zoom_x += 0.004
- @mb01.zoom_y += 0.004
- if @mb01.zoom_x >= 2
- @mb01.zoom_x = 2
- @mb01.zoom_y = 2
- end
- elsif TPBT::BACK_ZOOM == true
- @mb01.zoom_x -= 0.004
- @mb01.zoom_y -= 0.004
- if @mb01.zoom_x <= 1
- @mb01.zoom_x = 1
- @mb01.zoom_y = 1
- end
- end
- @mb01.ox -= TPBT::PIC_FD_OX
- @mb01.oy -= TPBT::PIC_FD_OY
- @mb02.ox -= TPBT::PIC_TEXTO_OX
- @mb02.oy -= TPBT::PIC_TEXTO_OY
- @mb02.opacity += 2
- Graphics.frame_rate = TPBT::PER
- if @time < TPBT::PIC_LEAF1_MOV and TPBT::PIC_LEAF1_RAND == true
- @mb07.ox += TPBT::PIC_LEAF1_OX2
- @mb07.oy -= TPBT::PIC_LEAF1_OY2
- else
- @mb07.ox -= TPBT::PIC_LEAF1_OX1
- @mb07.oy -= TPBT::PIC_LEAF1_OY1
- end
- if @time < TPBT::PIC_LEAF2_MOV and TPBT::PIC_LEAF2_RAND == true
- @mb08.ox -= TPBT::PIC_LEAF2_OX2
- @mb08.oy -= TPBT::PIC_LEAF2_OY2
- else
- @mb08.ox += TPBT::PIC_LEAF2_OX1
- @mb08.oy -= TPBT::PIC_LEAF2_OY1
- end
- if @time < TPBT::PIC_FOG_MOV and TPBT::PIC_FOG_RAND == true
- @mb03.ox -= TPBT::PIC_FOG_OX_02
- @mb03.oy -= TPBT::PIC_FOG_OY_02
- else
- @mb03.ox += TPBT::PIC_FOG_OX_01
- @mb03.oy -= TPBT::PIC_FOG_OY_01
- end
- if @time < TPBT::PIC_FOG2_MOV and TPBT::PIC_FOG2_RAND == true
- @mb04.ox -= TPBT::PIC_FOG2_OX_02
- @mb04.oy -= TPBT::PIC_FOG2_OY_02
- else
- @mb04.ox -= TPBT::PIC_FOG2_OX_01
- @mb04.oy -= TPBT::PIC_FOG2_OY_01
- end
- if @time < TPBT::PIC_FOG3_MOV and TPBT::PIC_FOG3_RAND == true
- @mb05.ox -= TPBT::PIC_FOG3_OX_02
- @mb05.oy -= TPBT::PIC_FOG3_OY_02
- else
- @mb05.ox -= TPBT::PIC_FOG3_OX_01
- @mb05.oy -= TPBT::PIC_FOG3_OY_01
- end
- @bot.color.set(r,g,b)
- if @time > 400
- @time = 0
- end
- if @rs == 0
- Audio.me_play("Audio/ME/" + TPBT::LOGO_ME, 100, 100)
- @rs += 1
- end
- if @logo.opacity <= 100 and @logo_r == 1
- if Input.trigger?(Input::C) and @command_window.active == true
- case @command_window.index
- when 0
- command_new_game
- when 1
- command_continue
- when 2
- command_shutdown
- end
- elsif Input.trigger?(Input::C) and @command_window.active == false or
- Input.trigger?(Input::B) and @command_window.active == false
- Audio.se_play("Audio/SE/" + TPBT::T_B_SE)
- @command_window.active = true
- end
- end
- case @command_window.index
- when 0
- @com.bitmap = RPG::Cache.title(TPBT::COM + "_01")
- when 1
- @com.bitmap = RPG::Cache.title(TPBT::COM + "_02")
- when 2
- @com.bitmap = RPG::Cache.title(TPBT::COM + "_03")
- when 3
- @com.bitmap = RPG::Cache.title(TPBT::COM + "_03")
- when 4
- @com.bitmap = RPG::Cache.title(TPBT::COM + "_03")
- when 5
- @com.bitmap = RPG::Cache.title(TPBT::COM + "_03")
- end
- end
- def command_new_game
- Audio.bgs_fade(800)
- $game_system.se_play($data_system.decision_se)
- Audio.bgm_stop
- Graphics.frame_count = 0
- $game_temp = Game_Temp.new
- $game_system = Game_System.new
- $game_switches = Game_Switches.new
- $game_variables = Game_Variables.new
- $game_self_switches = Game_SelfSwitches.new
- $game_screen = Game_Screen.new
- $game_actors = Game_Actors.new
- $game_party = Game_Party.new
- $game_troop = Game_Troop.new
- $game_map = Game_Map.new
- $game_player = Game_Player.new
- $game_party.setup_starting_members
- $game_map.setup($data_system.start_map_id)
- $game_player.moveto($data_system.start_x, $data_system.start_y)
- $game_player.refresh
- $game_map.autoplay
- $game_map.update
- $scene = Scene_Map.new
- end
- def command_continue
- unless @continue_enabled
- $game_system.se_play($data_system.buzzer_se)
- return
- end
- Audio.bgs_fade(800)
- $game_system.se_play($data_system.decision_se)
- $scene = Scene_Load.new
- 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
- def battle_test
- $data_actors = load_data("Data/BT_Actors.rxdata")
- $data_classes = load_data("Data/BT_Classes.rxdata")
- $data_skills = load_data("Data/BT_Skills.rxdata")
- $data_items = load_data("Data/BT_Items.rxdata")
- $data_weapons = load_data("Data/BT_Weapons.rxdata")
- $data_armors = load_data("Data/BT_Armors.rxdata")
- $data_enemies = load_data("Data/BT_Enemies.rxdata")
- $data_troops = load_data("Data/BT_Troops.rxdata")
- $data_states = load_data("Data/BT_States.rxdata")
- $data_animations = load_data("Data/BT_Animations.rxdata")
- $data_tilesets = load_data("Data/BT_Tilesets.rxdata")
- $data_common_events = load_data("Data/BT_CommonEvents.rxdata")
- $data_system = load_data("Data/BT_System.rxdata")
- Graphics.frame_count = 0
- $game_temp = Game_Temp.new
- $game_system = Game_System.new
- $game_switches = Game_Switches.new
- $game_variables = Game_Variables.new
- $game_self_switches = Game_SelfSwitches.new
- $game_screen = Game_Screen.new
- $game_actors = Game_Actors.new
- $game_party = Game_Party.new
- $game_troop = Game_Troop.new
- $game_map = Game_Map.new
- $game_player = Game_Player.new
- $game_party.setup_battle_test_members
- $game_temp.battle_troop_id = $data_system.test_troop_id
- $game_temp.battle_can_escape = true
- $game_map.battleback_name = $data_system.battleback_name
- $game_system.se_play($data_system.battle_start_se)
- $game_system.bgm_play($game_system.battle_bgm)
- $scene = Scene_Battle.new
- end
- end
- $full_screen = 0
- $TPBT_rgss_title_sofia = true
复制代码 |
评分
-
查看全部评分
|