s = Sprite.new
bmp = Bitmap.new(120, 120)
s.bitmap = bmp
sp = Sprite.new
show = Bitmap.new(120,120)
sp.bitmap = show
sp.x = 240
until false
bmp.clear
bmp.draw_text(30, 30, bmp.text_size(tx).width + addon,
bmp.text_size(tx).height, tx)
show.clear
show.draw_text(0, 0, 120, 120, addon)
flag = false
until flag
Graphics.update
Input.update
break if Input.trigger?(:B)
if Input.trigger?(:UP)
addon += 1
flag = true
elsif Input.trigger?(:DOWN)
addon -= 1
addon = 0 if addon < 0
flag = true
end
end
break unless flag
end