Loads of new examples, some more bug fixes, all of them work beautifully

This commit is contained in:
Webeled
2013-10-14 19:32:07 +01:00
parent faf432bdb0
commit 969fa46484
24 changed files with 400 additions and 38 deletions
+32
View File
@@ -0,0 +1,32 @@
<?php
$title = "Rectangle";
require('../head.php');
?>
<script type="text/javascript">
var game = new Phaser.Game(800, 600, Phaser.AUTO, '', {create: create});
function create() {
var graphics = game.add.graphics(50,50);
// set a fill and line style
graphics.beginFill(0xFF0000);
graphics.lineStyle(10, 0xFF0000, 1);
// draw a shape
graphics.moveTo(50,50);
graphics.lineTo(250, 50);
graphics.endFill();
}
</script>
<?php
require('../foot.php');
?>