Added phaser build and hellophaser sample
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<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 -->
|
||||
<style type="text/css">
|
||||
body {
|
||||
margin: 0;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
//creamos el objeto Phaser y lo guardamos en la variable 'game'
|
||||
var game = new Phaser.Game(800, 600, Phaser.AUTO, '', { preload: preload, create: create, update: update });
|
||||
|
||||
//función de precarga
|
||||
function preload() {
|
||||
}
|
||||
|
||||
//función de inicio de creación del juego
|
||||
function create() {
|
||||
}
|
||||
|
||||
//función llamada durante el juego, en cada frame
|
||||
function update() {
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user