Book files

This commit is contained in:
Richard Davey
2013-11-19 00:25:55 +00:00
parent b63bd14172
commit e43571980d
3 changed files with 39593 additions and 0 deletions
Binary file not shown.

After

Width:  |  Height:  |  Size: 78 KiB

+35
View File
@@ -0,0 +1,35 @@
<!DOCTYPE HTML>
<html>
<head>
<meta charset="UTF-8" />
<title>Creating a game in Phaser, part 1</title>
<script src="phaser.js"></script>
</head>
<body>
<div id="gameContainer"></div>
<script type="text/javascript">
window.onload = function() {
var game = new Phaser.Game(1024, 768, Phaser.AUTO, 'gameContainer', { preload: preload, create: create });
function preload () {
game.load.image('background', 'images/picture.png');
}
function create () {
game.add.sprite(0, 0, 'background');
}
};
</script>
</body>
</html>
File diff suppressed because it is too large Load Diff