| 
 
| 赞 | 0 |  
| VIP | 0 |  
| 好人卡 | 0 |  
| 积分 | 1 |  
| 经验 | 5060 |  
| 最后登录 | 2014-5-10 |  
| 在线时间 | 2 小时 |  
 Lv1.梦旅人 
	梦石0 星屑50 在线时间2 小时注册时间2006-11-7帖子170 | 
| 
本帖最后由 sdbgejsb 于 2009-8-19 15:45 编辑
x
加入我们,或者,欢迎回来。您需要 登录 才可以下载或查看,没有帐号?注册会员  
 class Mapp < Window_Base
 def make_all_map
 all_map = Bitmap.new($game_map.width * 32, $game_map.height * 32)
 for y in 0...$game_map.height
 for x in 0...$game_map.width
 for z in 0...3
 tile_num = @map_data[x, y, z]
 next if tile_num == nil
 if tile_num < 384
 if tile_num >= 48
 tile_num -= 48
 src_rect = Rect.new(32, 2 * 32, 32, 32)
 all_map.blt(x * 32, y * 32, @autotiles[tile_num / 48], src_rect)
 end
 else
 tile_num -= 384
 src_rect = Rect.new(tile_num % 8 * 32, tile_num / 8 * 32, 32, 32)
 all_map.blt(x * 32, y * 32, @tileset, src_rect)
 end
 end
 end
 end
 w = $game_map.width * 32
 h = $game_map.height * 32
 ret_bitmap = Bitmap.new(w, h)
 src_rect = Rect.new(0, 0, all_map.width, all_map.height)
 dest_rect = Rect.new(0, 0, ret_bitmap.width, ret_bitmap.height)
 ret_bitmap.stretch_blt(dest_rect, all_map, src_rect)
 all_map.dispose
 return ret_bitmap
 end
 def run
 mappp = Sprite.new(viewport)
 mappp.bitmap = @make_all_map
 mappp.z = 10000
 mappp.visible = true
 mappp.opacity = 255
 mappp.dispose
 end
 end
 
 这样写有什么不对?
 提示Argumenterror
 wrong number of argument(0-4)
 | 
 |