Input Component done and new Button object done and included. Also finished the build script.

This commit is contained in:
Richard Davey
2013-09-09 00:30:44 +01:00
parent 50624c1552
commit 9b6c819e0e
16 changed files with 26055 additions and 29119 deletions
+37
View File
@@ -0,0 +1,37 @@
<textarea style="width: 800px; height: 800px">
<?php
$js = file('../examples/js.php');
$output = "";
for ($i = 0; $i < count($js); $i++)
{
// <script src="../src/Phaser.js"></script>
$line = trim($js[$i]);
if (strpos($line, '<script') !== false)
{
$line = str_replace('<script src="', '', $line);
$line = str_replace('"></script>', '', $line);
echo $line . "\n";
// Read the file in
$source = file_get_contents($line);
if ($i == 4)
{
// Built at: {buildDate}
$source = str_replace('{buildDate}', date('r'), $source);
}
$output .= $source . "\n";
}
}
//echo $output;
file_put_contents('phaser.js', $output);
?>
</textarea>