Browse Source

dummy controller

Dima Mironov 10 years ago
parent
commit
f063d7cf2a
2 changed files with 8 additions and 0 deletions
  1. 7 0
      controller.js
  2. 1 0
      models/snake.js

+ 7 - 0
controller.js

@@ -0,0 +1,7 @@
+var Controller = function(){
+	
+}
+
+Controller.prototype.start_game = function(){
+	
+}

+ 1 - 0
models/snake.js

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