レベルごとに、新しいインスタンスを作成するベースとなる座標の配列があります。私はこれをどうやって行うのだろうかと思っています。これが私がこれまでに持っているものです。
function levelDots(level){
var renderLevel = {
1: [(100, 100), (200, 200)], //not sure if this is correct, e.g (100, 100) would correspond to (x,y)
2: [(50,50), (75,75)]
}
renderLevel[level].each(function(){ //not sure what to put inbetween function()
dots.push(new dot(x,y))
});
}