在Game_Map再生成一个Game_Vehicle的实例
比如加一个shitship
def create_vehicles @vehicles = [] @vehicles[0] = Game_Vehicle.new(:boat) @vehicles[1] = Game_Vehicle.new(:ship) @vehicles[2] = Game_Vehicle.new(:airship) @vehicles[3] = Game_Vehicle.new(:shitship) end
def create_vehicles
@vehicles = []
@vehicles[0] = Game_Vehicle.new(:boat)
@vehicles[1] = Game_Vehicle.new(:ship)
@vehicles[2] = Game_Vehicle.new(:airship)
@vehicles[3] = Game_Vehicle.new(:shitship)
end
然后再按照其他交通工具的样子在Game_Map增加你自己的交通工具,然后在Game_Vehicle里也进行对应修改 |