Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
games
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
熊东起
games
Commits
32476dd5
Commit
32476dd5
authored
Jan 13, 2021
by
熊东起
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add:urlLink
parent
5a19e615
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
23 additions
and
14 deletions
+23
-14
GameConfig.ts
src/GameConfig.ts
+5
-0
GameIndex.ts
src/GameIndex.ts
+2
-3
GamePart.ts
src/GamePart.ts
+9
-9
GameSVGA.ts
src/GameSVGA.ts
+0
-2
SiteNamePart.ts
src/SiteNamePart.ts
+7
-0
No files found.
src/GameConfig.ts
View file @
32476dd5
...
...
@@ -23,6 +23,11 @@ export namespace GameMgr {
"敬请期待哦~"
,
"点我进入游戏哦~"
];
export
let
LINK_LIST
=
[
""
,
""
,
""
];
}
export
const
CHANGE_POINT
=
[
{
x
:
400
,
y
:
4568
,
dir
:
'R'
},
...
...
src/GameIndex.ts
View file @
32476dd5
...
...
@@ -102,6 +102,7 @@ export class GameIndex extends GAME.WidgetBase {
GameMgr
.
options
.
curSteps
=
data
.
curSteps
;
GameMgr
.
GAME_STEP
=
data
.
gameSteps
;
GameMgr
.
SITE_NAME
=
data
.
siteName
;
GameMgr
.
LINK_LIST
=
data
.
linkList
;
let
endPoint
=
getCurPoint
(
GameMgr
.
options
.
curSteps
);
this
.
player
.
stepCount
=
GameMgr
.
options
.
curSteps
;
this
.
player
.
reset
(
endPoint
);
...
...
@@ -119,6 +120,7 @@ export class GameIndex extends GAME.WidgetBase {
this
.
namePart
.
refreshNames
();
this
.
stepWord
.
refreshSteps
();
this
.
gameMask
.
refreshData
();
this
.
namePart
.
refreshLinktxts
();
// this.onMaskPlayer();
}
...
...
@@ -183,9 +185,6 @@ export class GameIndex extends GAME.WidgetBase {
self
.
dispatchOutEvent
(
"arrive-site"
,
{
step
:
GameMgr
.
options
.
endSteps
});
},
1000
);
}
}
/** 盖住移动的人物 */
...
...
src/GamePart.ts
View file @
32476dd5
...
...
@@ -30,8 +30,8 @@ export default class GamePart extends GAME.Container {
this
.
partLayers
[
"part4"
]
=
cqgPart
;
cqgPart
.
addEventListener
(
GAME
.
MouseEvent
.
CLICK
,
this
.
onGotoActivities
.
bind
(
this
,
1
),
this
);
let
dbdshape2
=
this
.
addChild
(
new
GAME
.
Graphics
());
dbdshape2
.
beginFill
(
"#ffffff"
,
0
);
dbdshape2
.
drawCircle
(
600
,
4110
,
200
);
dbdshape2
.
beginFill
(
"#ffffff"
,
0
);
dbdshape2
.
drawCircle
(
600
,
4110
,
200
);
dbdshape2
.
endFill
();
dbdshape2
.
addEventListener
(
GAME
.
MouseEvent
.
CLICK
,
this
.
onGotoActivities
.
bind
(
this
,
1
),
this
);
...
...
@@ -60,8 +60,8 @@ export default class GamePart extends GAME.Container {
this
.
partLayers
[
"part8"
]
=
chbPart
;
let
dbdshape1
=
this
.
addChild
(
new
GAME
.
Graphics
());
dbdshape1
.
beginFill
(
"#ffffff"
,
0
);
dbdshape1
.
drawCircle
(
200
,
2600
,
250
);
dbdshape1
.
beginFill
(
"#ffffff"
,
0
);
dbdshape1
.
drawCircle
(
200
,
2600
,
250
);
dbdshape1
.
endFill
();
dbdshape1
.
addEventListener
(
GAME
.
MouseEvent
.
CLICK
,
this
.
onGotoActivities
.
bind
(
this
,
2
),
this
);
...
...
@@ -72,8 +72,8 @@ export default class GamePart extends GAME.Container {
this
.
partLayers
[
"part9"
]
=
dbdPart
;
let
dbdshape
=
this
.
addChild
(
new
GAME
.
Graphics
());
dbdshape
.
beginFill
(
"#ffffff"
,
0
);
dbdshape
.
drawCircle
(
600
,
1180
,
250
);
dbdshape
.
beginFill
(
"#ffffff"
,
0
);
dbdshape
.
drawCircle
(
600
,
1180
,
250
);
dbdshape
.
endFill
();
dbdshape
.
addEventListener
(
GAME
.
MouseEvent
.
CLICK
,
this
.
onGotoActivities
.
bind
(
this
,
3
),
this
);
...
...
@@ -88,7 +88,7 @@ export default class GamePart extends GAME.Container {
//点击事件
onGotoActivities
(
e
:
any
)
{
GameMgr
.
game
.
dispatchOutEvent
(
"goto-activity"
,
{
type
:
e
});
GameMgr
.
game
.
dispatchOutEvent
(
"goto-activity"
,
{
url
:
GameMgr
.
LINK_LIST
[
e
-
1
]
||
""
});
}
}
\ No newline at end of file
src/GameSVGA.ts
View file @
32476dd5
import
*
as
GAME
from
"spark-wrapper-fyge"
;
export
default
class
GameSVGA
extends
GAME
.
Container
{
constructor
()
{
super
();
//宝石山
...
...
@@ -55,6 +54,5 @@ export default class GameSVGA extends GAME.Container {
let
sfcy2SVGA
=
this
.
addChild
(
new
GAME
.
MovieClip
(
GAME
.
getAssetByUUID
(
"sfcy2_svga"
)));
sfcy2SVGA
.
x
=
450
;
sfcy2SVGA
.
y
=
638
;
}
}
\ No newline at end of file
src/SiteNamePart.ts
View file @
32476dd5
...
...
@@ -132,4 +132,11 @@ export default class SiteNamePart extends GAME.Container {
this
.
txtDialogs
[
`txt
${
i
}
`
].
txt
=
GameMgr
.
TXT_DIALOG
[
i
];
}
}
/** 刷新气泡数据 */
refreshLinktxts
(){
for
(
let
i
=
0
;
i
<
3
;
i
++
){
this
.
txtDialogs
[
`txt
${
i
}
`
].
txt
=
GameMgr
.
LINK_LIST
[
i
]
?
"点我进入游戏哦~"
:
"敬请期待哦~"
;
}
}
}
\ No newline at end of file
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