try to draw 1000*1000 svg grig
This commit is contained in:
parent
9c2f3eb26a
commit
c17b6cb69e
|
@ -23,11 +23,11 @@ switch ($_POST['act']){
|
|||
$bot2Exists = false;
|
||||
foreach($bots as $bot){
|
||||
if($bot['id'] == $_POST['bot1']){
|
||||
$_SESSION['bots'][]=new TronPlayer($bot['id']);
|
||||
$_SESSION['bots'][]=new TronPlayer($bot['id'],1,1);
|
||||
$bot1Exists =true;
|
||||
}
|
||||
if($bot['id'] == $_POST['bot2']){
|
||||
$_SESSION['bots'][]=new TronPlayer($bot['id']);
|
||||
$_SESSION['bots'][]=new TronPlayer($bot['id'],998,998);
|
||||
$bot2Exists =true;
|
||||
}
|
||||
if ($bot1Exists && $bot2Exists){
|
||||
|
|
|
@ -31,7 +31,7 @@ class TronPlayer{
|
|||
$headCoords = end($this->tail);
|
||||
|
||||
|
||||
switch $dir{
|
||||
switch ($dir){
|
||||
case "y+":
|
||||
$targetCoords = array($headCoords[0],$headCoords[1]++);
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue
Block a user