Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sejong25
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Tear of Sejong
sejong25
Commits
52d911a2
Commit
52d911a2
authored
Jul 04, 2019
by
18신대성
Committed by
16이지혜
Jul 04, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
menu scene 만들긴 함
parent
1578c084
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
3 deletions
+30
-3
ScenesData.js
js/ScenesData.js
+29
-2
main.js
js/main.js
+1
-1
No files found.
js/ScenesData.js
View file @
52d911a2
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
()
...
...
js/main.js
View file @
52d911a2
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment