Faster level generator

This commit is contained in:
Shoghi Cervantes 2013-09-09 03:32:24 +02:00
parent 4ccaccc126
commit b3c51c6d2e
11 changed files with 71 additions and 63 deletions

View file

@ -23,12 +23,8 @@ class Vector2{
public $x, $y;
public function __construct($x = 0, $y = 0){
if(($x instanceof Vector2) === true){
$this->__construct($x->x, $x->y);
}else{
$this->x = $x;
$this->y = $y;
}
$this->x = $x;
$this->y = $y;
}
public function getX(){