def set_item
n = @score + @power + @life + @bomb + @money + @bigmoney + @bigpower
return if n == 0
a = -Math::PI / 2
for i in 0...@score
d = Math::PI * 2 / @score
$scene.add_item((@sx >> 10) + 8, self.y + 8, (Math.cos(a) * 768).to_i,
(Math.sin(a) * 768).to_i, 0)
a += d
end
for i in 0...@power
d = Math::PI * 2 / @power
$scene.add_item((@sx >> 10) + 8, self.y + 8, (Math.cos(a) * 768).to_i,
(Math.sin(a) * 768).to_i, 1)
a += d
end
for i in 0...@life
d = Math::PI * 2 / @life
$scene.add_item((@sx >> 10) + 8, self.y + 8, (Math.cos(a) * 768).to_i,
(Math.sin(a) * 768).to_i, 2)
a += d
end
for i in 0...@bomb
d = Math::PI * 2 / @bomb
$scene.add_item((@sx >> 10) + 8, self.y + 8, (Math.cos(a) * 768).to_i,
(Math.sin(a) * 768).to_i, 3)
a += d
end
for i in 0...@money
d = Math::PI * 2 / @money
$scene.add_item((@sx >> 10) + 8, self.y + 8, (Math.cos(a) * 768).to_i,
(Math.sin(a) * 768).to_i, 4)
a += d
end
for i in 0...@bigmoney
d = Math::PI * 2 / @bigmoney
$scene.add_item((@sx >> 10) + 8, self.y + 8, (Math.cos(a) * 768).to_i,
(Math.sin(a) * 768).to_i, 5)
a += d
end
for i in 0...@bigpower
d = Math::PI * 2 / @bigpower
$scene.add_item((@sx >> 10) + 8, self.y + 8, (Math.cos(a) * 768).to_i,
(Math.sin(a) * 768).to_i, 6)
a += d
end
end