赞 | 12 |
VIP | 107 |
好人卡 | 6 |
积分 | 4 |
经验 | 31122 |
最后登录 | 2024-6-29 |
在线时间 | 1606 小时 |
Lv2.观梦者 傻♂逼
- 梦石
- 0
- 星屑
- 374
- 在线时间
- 1606 小时
- 注册时间
- 2007-3-13
- 帖子
- 6562
|
3楼
楼主 |
发表于 2011-5-1 00:39:59
|
只看该作者
禾西 发表于 2011-5-1 00:33
是 Sprite 呀 Sprite 呀……
$scripts=[]
class Sprite
alias old_initialize initialize
def initialize(*args)
old_initialize(*args)
$scripts.push(self)
end
end
$data_actors = load_data("Data/Actors.rvdata")
$data_classes = load_data("Data/Classes.rvdata")
$data_skills = load_data("Data/Skills.rvdata")
$data_items = load_data("Data/Items.rvdata")
$data_weapons = load_data("Data/Weapons.rvdata")
$data_armors = load_data("Data/Armors.rvdata")
$data_enemies = load_data("Data/Enemies.rvdata")
$data_troops = load_data("Data/Troops.rvdata")
$data_states = load_data("Data/States.rvdata")
$data_animations = load_data("Data/Animations.rvdata")
$data_common_events = load_data("Data/CommonEvents.rvdata")
$data_system = load_data("Data/System.rvdata")
$data_areas = load_data("Data/Areas.rvdata")
$game_temp = Game_Temp.new
$game_message = Game_Message.new
$game_system = Game_System.new
$game_switches = Game_Switches.new
$game_variables = Game_Variables.new
$game_self_switches = Game_SelfSwitches.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_map.setup(1)
$sm=Spriteset_Map.new
while true
Graphics.update
Input.update
$sm.update
#if $scripts.size>1
for i in $scripts
if not i.bitmap.nil?
#p i.bitmap.width,i.bitmap.height
i.bitmap.fill_rect(0,0,i.bitmap.width,i.bitmap.height,Color.new(0,0,0))
end
end
#exit
#end
end
还是如此~ |
|