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
2e89020e
Commit
2e89020e
authored
Jun 28, 2019
by
18신대성
Committed by
16이지혜
Jun 28, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
단어풀 변경 및 생성할때마다 다음 딜레이가 줄어들게
parent
d789252f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
WordSpace.js
js/WordSpace.js
+7
-1
main.js
js/main.js
+1
-1
No files found.
js/WordSpace.js
View file @
2e89020e
...
...
@@ -64,9 +64,11 @@ WordSpace.attackGauge =
WordSpace
.
wordCycle
=
{
delay
:
0
,
currentCycle
:
null
,
resetCycle
:
function
(
scene
,
_delay
)
{
this
.
delay
=
_delay
;
var
option
=
{
delay
:
_delay
,
...
...
@@ -74,6 +76,7 @@ WordSpace.wordCycle =
{
let
wordIdx
=
Math
.
floor
(
Math
.
random
()
*
WordSpace
.
wordCycle
.
wordList
.
length
);
WordSpace
.
generateWord
(
this
,
WordSpace
.
wordCycle
.
wordList
[
wordIdx
]);
WordSpace
.
wordCycle
.
resetCycle
(
this
,
WordSpace
.
wordCycle
.
delay
-
50
);
},
callbackScope
:
scene
,
loop
:
true
...
...
@@ -89,7 +92,10 @@ WordSpace.wordCycle =
},
wordList
:
// 미개한 버전, 심심해서 만들어봄
[
'
솽젠커
'
,
'
통관
'
,
'
맥주땡겨
'
,
'
자료구조
'
,
'
팡광우럮다
'
'
맥주
'
,
'
게임
'
,
'
넥슨
'
,
'
광팡
'
,
'
팡광
'
,
'
샌즈
'
,
'
군머
'
,
'
작혼
'
,
'
육회
'
,
'
공격
'
,
'
블루홀
'
,
'
동묘얖
'
,
'
치또이
'
,
'
컴퓨터
'
,
'
네빔띤
'
,
'
소고기
'
,
'
비넴띤
'
,
'
비빔면
'
,
'
네오위즈
'
,
'
기기괴피
'
,
'
스테이크
'
,
'
상장폐지
'
,
'
상장폐거
'
,
'
탑블레이드
'
,
'
엔씨소프트
'
,
'
가스레인지
'
,
'
괄도네빔띤
'
]
}
...
...
js/main.js
View file @
2e89020e
...
...
@@ -31,7 +31,7 @@ function create()
BackGround
.
drawBrain
(
this
);
Input
.
inputField
.
generate
(
this
);
WordSpace
.
wordPhysicsGroup
=
this
.
physics
.
add
.
group
();
WordSpace
.
wordCycle
.
resetCycle
(
this
,
2
000
);
WordSpace
.
wordCycle
.
resetCycle
(
this
,
3
000
);
WordSpace
.
attackGauge
.
resetCycle
(
this
);
}
...
...
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