diff --git a/website/levels.php b/website/levels.php index 33a81b3..6036406 100644 --- a/website/levels.php +++ b/website/levels.php @@ -22,6 +22,18 @@ function getworldname($wld) { } } +function getworldcolour($wld) { + if ($wld == 1) { + return "#BBDDBB"; + } else if ($wld == 2) { + return "#CCCC99"; + } else if ($wld == 3) { + return "#9999ff"; + } else if ($wld == 4) { + return "#AAAAAA"; + } +} + for ($w = 1; $w <= 4; $w++) { echo "\n"; printf("World %d - %s\n",$w, getworldname($w)); @@ -29,7 +41,7 @@ for ($w = 1; $w <= 4; $w++) { for ($l = 1; $l <= 20;) { echo "\n"; for ($i = 0 ; $i < 4; $i++) { - echo "\n"; + printf("\n", getworldcolour($w)); echo "
\n"; if ($l > 20) { printf(" \n");