Dima Mironov 10 vuotta sitten
vanhempi
commit
71fc9b26da
3 muutettua tiedostoa jossa 22 lisäystä ja 0 poistoa
  1. 3 0
      models/collectible.js
  2. 11 0
      models/particle.js
  3. 8 0
      models/snake.js

+ 3 - 0
models/collectible.js

@@ -0,0 +1,3 @@
+var Collectible = function(position){
+	this.position = position;
+}

+ 11 - 0
models/particle.js

@@ -0,0 +1,11 @@
+var Particle = function(position){
+	Collectible.call(this, position);
+	this.type = "Higgs";
+	this.mass = 125;
+	this.charge = 0;
+	this.start_time = 1234;
+	this.target = null;
+	this.velocity = null;
+	this.points = 125;
+	this.parent_type = "W";
+}

+ 8 - 0
models/snake.js

@@ -0,0 +1,8 @@
+var Snake = function(){
+	this.physicists = [];
+	for (var i = 0; i < n_physicsists; i++){
+		this.physicists.push_back(new Physicist(this, position));
+	}
+	this.bonuses = [];
+	this.speed = 1;
+}