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
5487749b
Commit
5487749b
authored
Jun 24, 2019
by
18신대성
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
init phaser project
parent
3e611988
Changes
2
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
188972 additions
and
0 deletions
+188972
-0
index.html
index.html
+59
-0
phaser.js
script/phaser.js
+188913
-0
No files found.
index.html
0 → 100644
View file @
5487749b
<!DOCTYPE html>
<html>
<head>
<script
src=
"script/phaser.js"
></script>
</head>
<body>
<script>
var
config
=
{
type
:
Phaser
.
AUTO
,
width
:
800
,
height
:
600
,
physics
:
{
default
:
'
arcade
'
,
arcade
:
{
gravity
:
{
y
:
200
}
}
},
scene
:
{
preload
:
preload
,
create
:
create
}
};
var
game
=
new
Phaser
.
Game
(
config
);
function
preload
()
{
this
.
load
.
setBaseURL
(
'
http://labs.phaser.io
'
);
this
.
load
.
image
(
'
sky
'
,
'
assets/skies/space3.png
'
);
this
.
load
.
image
(
'
logo
'
,
'
assets/sprites/phaser3-logo.png
'
);
this
.
load
.
image
(
'
red
'
,
'
assets/particles/red.png
'
);
}
function
create
()
{
this
.
add
.
image
(
400
,
300
,
'
sky
'
);
var
particles
=
this
.
add
.
particles
(
'
red
'
);
var
emitter
=
particles
.
createEmitter
({
speed
:
100
,
scale
:
{
start
:
1
,
end
:
0
},
blendMode
:
'
ADD
'
});
var
logo
=
this
.
physics
.
add
.
image
(
400
,
100
,
'
logo
'
);
logo
.
setVelocity
(
100
,
200
);
logo
.
setBounce
(
1
,
1
);
logo
.
setCollideWorldBounds
(
true
);
emitter
.
startFollow
(
logo
);
}
</script>
</body>
</html>
\ No newline at end of file
script/phaser.js
0 → 100644
View file @
5487749b
This diff is collapsed.
Click to expand it.
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