|
@@ -1,7 +1,7 @@
|
|
|
var Snake = function(n_physicisits){
|
|
var Snake = function(n_physicisits){
|
|
|
this.physicists = [];
|
|
this.physicists = [];
|
|
|
for (var i = 0; i < n_physicisits; i++){
|
|
for (var i = 0; i < n_physicisits; i++){
|
|
|
- this.physicists.push(new Physicist(this, {x: 0, y: 0}));
|
|
|
|
|
|
|
+ this.physicists.push(new Physicist(this, {x: 0, y: 0}, i % 8));
|
|
|
}
|
|
}
|
|
|
this.physicists[0].direction = {x: 0, y: 0};
|
|
this.physicists[0].direction = {x: 0, y: 0};
|
|
|
this.new_physicists = [];
|
|
this.new_physicists = [];
|