phaser/2.6.2/resources/tutorials/Spanish/02 Creando tu primer juego/part2.html
2016-11-22 01:36:56 +00:00

39 lines
No EOL
824 B
HTML
Executable file

<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>Phaser - Creando tu primer juego, parte 2</title>
<script type="text/javascript" src="js/phaser.min.js"></script>
<style type="text/css">
body {
margin: 0;
}
</style>
</head>
<body>
<script type="text/javascript">
var game = new Phaser.Game(800, 600, Phaser.AUTO, '', { preload: preload, create: create, update: update });
function preload() {
// Indicamos a Phaser los recursos (imágenes png) que hay que cargar
game.load.image('sky', 'assets/sky.png');
game.load.image('ground', 'assets/platform.png');
game.load.image('star', 'assets/star.png');
game.load.spritesheet('dude', 'assets/dude.png', 32, 48);
}
function create() {
}
function update() {
}
</script>
</body>
</html>