こんな感じ for x = 0 to xm - 1 for y = 0 to ym - 1 var s = world[x,y] '変数に入れて配列アクセスを減らす if s == 空白 then gosub @space elseif s == 植物 then gosub @plant ... endif next next