Commit 52d911a2 authored by 18신대성's avatar 18신대성 Committed by 16이지혜

menu scene 만들긴 함

parent 1578c084
var menuScene = new Phaser.Class(
{
Extends: Phaser.Scene,
initialize:
function menuScene ()
{
Phaser.Scene.call(this, {key: 'menuScene'});
},
preload: function()
{
//Input.inputField.loadImage(this);
},
create: function()
{
//Input.inputField.generate(this);
},
update: function()
{
}
});
var gameScene = new Phaser.Class(
{
Extends: Phaser.Scene,
initialize:
function gameScene (config)
function gameScene ()
{
Phaser.Scene.call(this, config);
Phaser.Scene.call(this, {key: 'gameScene'});
},
preload: function()
......
......@@ -9,7 +9,7 @@ var config = {
}
},
backgroundColor: Phaser.Display.Color.GetColor(0,0,0),
scene: [ gameScene ]
scene: [ gameScene, menuScene ]
};
var game = new Phaser.Game(config)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment