push last positions to array

This commit is contained in:
James B. Pollack 2015-10-12 16:35:06 -07:00
parent 47471e837f
commit bc4200d8d7
2 changed files with 7 additions and 3 deletions

View file

@ -439,6 +439,7 @@
position.y = startPosition.y - (row * VERTICAL_SPACING);
originalPositions.push(position);
lastPositions.push(position);
var targetProperties = {
name: 'Target',

View file

@ -411,6 +411,7 @@ MasterReset = function() {
position.y = startPosition.y - (row * VERTICAL_SPACING);
originalPositions.push(position);
lastPositions.push(position);
var targetProperties = {
name: 'Target',
@ -429,8 +430,10 @@ MasterReset = function() {
}
})
};
var target = Entities.addEntity(targetProperties);
targets.push(target);
}
}