ゲーム内に次のサークルがあります。プレーヤーはそれらをゲーム内の別の場所にドラッグします。プレーヤーが選択したときに、もう一度再生すると、形状が init 関数で指定された元の位置に戻ります。これについてどうすればよいですか?ありがとうございました。
stage = new Kinetic.Stage({
container: "container",
width: 900,
height: 550
});
shapes = new Kinetic.Layer();
function init() {
circle1 = new Kinetic.Circle({
x: stage.getWidth() / 3.2,
y: stage.getHeight() / 3.2,
radius: radius,
fill: "blue",
stroke: "black",
strokeWidth: 4,
name: "circle",
draggable: true
});
shapes.add(circle1)
stage.add(shapes)