Explorar o código

dummy controller

Dima Mironov %!s(int64=10) %!d(string=hai) anos
pai
achega
f063d7cf2a
Modificáronse 2 ficheiros con 8 adicións e 0 borrados
  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;
 }