mirror of
https://github.com/wassname/phaser.git
synced 2026-09-11 12:31:29 +08:00
Input Component done and new Button object done and included. Also finished the build script.
This commit is contained in:
@@ -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>
|
||||
Reference in New Issue
Block a user