赞 | 0 |
VIP | 187 |
好人卡 | 12 |
积分 | 1 |
经验 | 6042 |
最后登录 | 2012-10-8 |
在线时间 | 333 小时 |
Lv1.梦旅人 穿越一季:朔
- 梦石
- 0
- 星屑
- 50
- 在线时间
- 333 小时
- 注册时间
- 2007-4-11
- 帖子
- 5369
|
- #--------------------------------------------------------------------------
- # ● 命令:新游戏
- #--------------------------------------------------------------------------
- def command_new_game
- confirm_player_location
- Sound.play_decision
- $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
- $scene = Scene_Map.new
- RPG::BGM.fade(1500)
- close_command_window
-
-
- # 速度
- speed = 3
- # 图名
- name = "name"
- # 图数
- number = 924
- for i in 1..number
- Cache.picture(sprintf("sa(#{i})"))
- end
- Audio.bgm_play("Audio/BGM/Battle2" , 100, 100) # 音乐
- wait = Sprite.new
- wait.bitmap = Bitmap.new("Graphics/Pictures/sa(500)") # 初始化的图片
- Graphics.update
- wait = Sprite.new
- wait.bitmap
- for i in 1..number
- pictures = Sprite.new
- pictures.bitmap = Cache.picture(sprintf("sa(#{i})"))
- pictures.ox = pictures.bitmap.width / 2
- pictures.oy = pictures.bitmap.height / 2
- pictures.x = 272
- pictures.y = 208
- for i in 1..speed do Graphics.update end
- Input.update
- pictures.bitmap.dispose
- pictures.dispose
- break if Input.trigger?(Input::C)
- end
- Cache.clear
- Audio.bgm_stop
- end
-
- Graphics.fadeout(60)
- Graphics.wait(40)
- Graphics.frame_count = 0
- RPG::BGM.stop
- $game_map.autoplay
- end
复制代码
替换掉Scene_Title的 # ● 命令:新游戏 那一段试试
|
|