$value)
{
if (is_dir($dir . DIRECTORY_SEPARATOR . $value))
{
$result[$value] = dirToArray($dir . DIRECTORY_SEPARATOR . $value);
}
else
{
if (substr($value, -3) == '.js')
{
$result[] = $value;
}
}
}
return $result;
}
$state = false;
if (isset($_GET['f']))
{
$js = $_GET['d'] . '/' . $_GET['f'];
$ts = substr($js, 0, -2) . 'ts';
$state = substr($_GET['f'], 0, -3);
}
$mobile = false;
if (isset($_GET['m']))
{
$mobile = true;
}
?>
Phaser Test Runner:
Home
View JavaScript
View TypeScript
You'll learn best from these Tests by viewing the source code.
Use the arrow keys / mouse to move around most of them.
Phaser
$value) {
$value2 = substr($value, 0, -3);
if ($dir == 'mobile')
{
echo "$value2";
}
else
{
echo "$value2";
}
}
}
if ($state == false && $mobile == false)
{
?>
$value) {
// If $key is an array, output it as an h2 or something
if (is_array($value) && count($value) > 0)
{
$total += count($value);
}
}
echo "
Total Tests: $total
";
foreach ($files as $key => $value) {
// If $key is an array, output it as an h2 or something
if (is_array($value) && count($value) > 0)
{
echo "$key (" . count($value) . " examples)
";
printJSLinks($key, $value);
}
}
?>