Explorar el Código

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

Luca Ambroz hace 10 años
padre
commit
dd01c0d177
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  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");