Skip to content

Commit 9b6c819

Browse files
committed
Input Component done and new Button object done and included. Also finished the build script.
1 parent 50624c1 commit 9b6c819

16 files changed

Lines changed: 26055 additions & 29119 deletions

build/build.php

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
<textarea style="width: 800px; height: 800px">
2+
<?php
3+
4+
$js = file('../examples/js.php');
5+
$output = "";
6+
7+
for ($i = 0; $i < count($js); $i++)
8+
{
9+
// <script src="../src/Phaser.js"></script>
10+
$line = trim($js[$i]);
11+
12+
if (strpos($line, '<script') !== false)
13+
{
14+
$line = str_replace('<script src="', '', $line);
15+
$line = str_replace('"></script>', '', $line);
16+
17+
echo $line . "\n";
18+
19+
// Read the file in
20+
$source = file_get_contents($line);
21+
22+
if ($i == 4)
23+
{
24+
// Built at: {buildDate}
25+
$source = str_replace('{buildDate}', date('r'), $source);
26+
}
27+
28+
$output .= $source . "\n";
29+
}
30+
}
31+
32+
//echo $output;
33+
34+
file_put_contents('phaser.js', $output);
35+
36+
?>
37+
</textarea>

0 commit comments

Comments
 (0)