2013-12-10 15:49:01 +00:00
|
|
|
<!doctype html>
|
|
|
|
<html lang="en">
|
|
|
|
<head>
|
|
|
|
<meta charset="UTF-8" />
|
2013-12-10 16:31:19 +00:00
|
|
|
<title>Phaser - Creando tu primer juego, parte 1</title>
|
|
|
|
<script type="text/javascript" src="js/phaser.min.js"></script> <!-- incluimos la librería de Phaser -->
|
2013-12-10 15:49:01 +00:00
|
|
|
<style type="text/css">
|
|
|
|
body {
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
|
2013-12-10 16:31:19 +00:00
|
|
|
//creamos el objeto Phaser y lo guardamos en la variable 'game'
|
2013-12-10 15:49:01 +00:00
|
|
|
var game = new Phaser.Game(800, 600, Phaser.AUTO, '', { preload: preload, create: create, update: update });
|
|
|
|
|
2013-12-10 16:31:19 +00:00
|
|
|
//función de precarga
|
2013-12-10 15:49:01 +00:00
|
|
|
function preload() {
|
|
|
|
}
|
|
|
|
|
2013-12-10 16:31:19 +00:00
|
|
|
//función de inicio de creación del juego
|
2013-12-10 15:49:01 +00:00
|
|
|
function create() {
|
|
|
|
}
|
|
|
|
|
2013-12-10 16:31:19 +00:00
|
|
|
//función llamada durante el juego, en cada frame
|
2013-12-10 15:49:01 +00:00
|
|
|
function update() {
|
|
|
|
}
|
|
|
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
</body>
|
|
|
|
</html>
|