キー入力による別画像の連続表示
def setup size 800,600 frame_rate 10 @ary = %w[1_h 2_h 1_v 2_v] end def draw if key_pressed? if key == CODED and key_code == UP @map = load_image "img#{@ary.pop}.jpg" background 255 image @map,((width/2)-(@map.width/2)),(height/2)-(@map.height/2) end end end