Skip to content
Snippets Groups Projects
Commit 4e5fc875 authored by Samson's avatar Samson
Browse files

css

parent 75ca7fa5
No related branches found
No related tags found
No related merge requests found
Pipeline #162742 passed
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
</title> </title>
<script src="phaser/phaser.min.js"></script> <script src="phaser/phaser.min.js"></script>
<link rel="stylesheet" href="main.css">
<script src="state0.js"></script> <script src="state0.js"></script>
<script src="state1.js"></script> <script src="state1.js"></script>
<script src="state2.js"></script> <script src="state2.js"></script>
......
*{
margin: 0;
}
\ No newline at end of file
var game = new Phaser.Game(600, 400, Phaser.AUTO); var game = new Phaser.Game(1500, 1000, Phaser.AUTO);
game.state.add('state0', demo.state0); game.state.add('state0', demo.state0);
game.state.add('state1', demo.state1); game.state.add('state1', demo.state1);
game.state.add('state2', demo.state2); game.state.add('state2', demo.state2);
......
...@@ -6,6 +6,7 @@ demo.state0.prototype = { ...@@ -6,6 +6,7 @@ demo.state0.prototype = {
game.stage.backgroundColor = '#ffcccc'; game.stage.backgroundColor = '#ffcccc';
console.log('state0'); console.log('state0');
addChangeStateEventListeners(); addChangeStateEventListeners();
game.scale.scaleMode = Phaser.ScaleManager.SHOW_ALL;
}, },
update: function(){} update: function(){}
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment