Browse Source

Merge branch 'models' of https://github.com/snaky-particles/snaky-particles into models

Luca Ambroz 10 years ago
parent
commit
dd01c0d177
1 changed files with 3 additions and 1 deletions
  1. 3 1
      js/controller.js

+ 3 - 1
js/controller.js

@@ -13,8 +13,10 @@ var Controller = function(){
 	
 	var pp = possible_particles();
 
+	this.possible_collectibles = [];
+
 	for (var p in pp){
-		this.possible_collectibles.push({collectible: pp[p], probability: pp.p.appearence_probabilty});
+		this.possible_collectibles.push({collectible: pp[p], probability: pp[p].appearence_probabilty});
 	}
 
 	this.stage = new createjs.Stage("demoCanvas");