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
8b820040
Commit
8b820040
authored
Feb 20, 2021
by
熊东起
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
222
parent
81154e79
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
28 additions
and
8 deletions
+28
-8
.DS_Store
.DS_Store
+0
-0
GameIndex.ts
src/GameIndex.ts
+1
-0
GamePart.ts
src/GamePart.ts
+7
-2
GameSVGA.ts
src/GameSVGA.ts
+20
-6
No files found.
.DS_Store
0 → 100644
View file @
8b820040
File added
src/GameIndex.ts
View file @
8b820040
...
@@ -122,6 +122,7 @@ export class GameIndex extends GAME.WidgetBase {
...
@@ -122,6 +122,7 @@ export class GameIndex extends GAME.WidgetBase {
this
.
stepWord
.
refreshSteps
();
this
.
stepWord
.
refreshSteps
();
this
.
gameMask
.
refreshData
();
this
.
gameMask
.
refreshData
();
this
.
namePart
.
refreshLinktxts
();
this
.
namePart
.
refreshLinktxts
();
this
.
gameSvga
.
refreshredPack
();
// this.onMaskPlayer();
// this.onMaskPlayer();
}
}
...
...
src/GamePart.ts
View file @
8b820040
...
@@ -3,6 +3,7 @@ import { GameMgr } from "./GameConfig";
...
@@ -3,6 +3,7 @@ import { GameMgr } from "./GameConfig";
import
GameMask
from
"./GamneMask"
;
import
GameMask
from
"./GamneMask"
;
export
default
class
GamePart
extends
GAME
.
Container
{
export
default
class
GamePart
extends
GAME
.
Container
{
private
partLayers
:
any
=
{};
private
partLayers
:
any
=
{};
private
isTouch
:
boolean
=
true
;
constructor
()
{
constructor
()
{
super
();
super
();
...
@@ -28,7 +29,7 @@ export default class GamePart extends GAME.Container {
...
@@ -28,7 +29,7 @@ export default class GamePart extends GAME.Container {
cqgPart
.
y
=
3735
;
cqgPart
.
y
=
3735
;
cqgPart
.
x
=
750
-
628
;
cqgPart
.
x
=
750
-
628
;
this
.
partLayers
[
"part4"
]
=
cqgPart
;
this
.
partLayers
[
"part4"
]
=
cqgPart
;
cqgPart
.
addEventListener
(
GAME
.
MouseEvent
.
CLICK
,
this
.
onGotoActivities
.
bind
(
this
,
1
),
this
);
//
cqgPart.addEventListener(GAME.MouseEvent.CLICK, this.onGotoActivities.bind(this, 1), this);
let
dbdshape2
=
this
.
addChild
(
new
GAME
.
Graphics
());
let
dbdshape2
=
this
.
addChild
(
new
GAME
.
Graphics
());
dbdshape2
.
beginFill
(
"#ffffff"
,
0
);
dbdshape2
.
beginFill
(
"#ffffff"
,
0
);
dbdshape2
.
drawCircle
(
600
,
4110
,
200
);
dbdshape2
.
drawCircle
(
600
,
4110
,
200
);
...
@@ -88,7 +89,11 @@ export default class GamePart extends GAME.Container {
...
@@ -88,7 +89,11 @@ export default class GamePart extends GAME.Container {
//点击事件
//点击事件
onGotoActivities
(
e
:
any
)
{
onGotoActivities
(
e
:
any
)
{
if
(
!
this
.
isTouch
)
return
;
this
.
isTouch
=
false
;
GameMgr
.
game
.
dispatchOutEvent
(
"goto-activity"
,
{
url
:
GameMgr
.
LINK_LIST
[
e
-
1
]
||
""
});
GameMgr
.
game
.
dispatchOutEvent
(
"goto-activity"
,
{
url
:
GameMgr
.
LINK_LIST
[
e
-
1
]
||
""
});
setTimeout
(()
=>
{
this
.
isTouch
=
true
},
1500
);
}
}
}
}
\ No newline at end of file
src/GameSVGA.ts
View file @
8b820040
import
*
as
GAME
from
"spark-wrapper-fyge"
;
import
*
as
GAME
from
"spark-wrapper-fyge"
;
import
{
GameMgr
}
from
"./GameConfig"
;
export
default
class
GameSVGA
extends
GAME
.
Container
{
export
default
class
GameSVGA
extends
GAME
.
Container
{
private
_qhbMask
:
GAME
.
Sprite
;
private
_redPack
:
GAME
.
MovieClip
;
constructor
()
{
constructor
()
{
super
();
super
();
//宝石山
//宝石山
...
@@ -23,12 +26,12 @@ export default class GameSVGA extends GAME.Container {
...
@@ -23,12 +26,12 @@ export default class GameSVGA extends GAME.Container {
phqySVGA
.
y
=
2892
;
phqySVGA
.
y
=
2892
;
//拆红包
//拆红包
let
chbSVGA
=
this
.
addChild
(
new
GAME
.
MovieClip
(
GAME
.
getAssetByUUID
(
"qhb_svga"
)));
this
.
_redPack
=
this
.
addChild
(
new
GAME
.
MovieClip
(
GAME
.
getAssetByUUID
(
"qhb_svga"
)));
chbSVGA
.
x
=
0
;
this
.
_redPack
.
x
=
0
;
chbSVGA
.
y
=
2160
;
this
.
_redPack
.
y
=
2160
;
let
qhbMask
=
this
.
addChild
(
new
GAME
.
Sprite
(
GAME
.
TextureCache
[
"qhbmask"
]));
this
.
_
qhbMask
=
this
.
addChild
(
new
GAME
.
Sprite
(
GAME
.
TextureCache
[
"qhbmask"
]));
qhbMask
.
x
=
0
;
this
.
_
qhbMask
.
x
=
0
;
qhbMask
.
y
=
2145
;
this
.
_
qhbMask
.
y
=
2145
;
//苏堤春晓
//苏堤春晓
let
sdcxSVGA
=
this
.
addChild
(
new
GAME
.
MovieClip
(
GAME
.
getAssetByUUID
(
"sdcx_svga"
)));
let
sdcxSVGA
=
this
.
addChild
(
new
GAME
.
MovieClip
(
GAME
.
getAssetByUUID
(
"sdcx_svga"
)));
...
@@ -55,4 +58,15 @@ export default class GameSVGA extends GAME.Container {
...
@@ -55,4 +58,15 @@ export default class GameSVGA extends GAME.Container {
sfcy2SVGA
.
x
=
450
;
sfcy2SVGA
.
x
=
450
;
sfcy2SVGA
.
y
=
638
;
sfcy2SVGA
.
y
=
638
;
}
}
//初始化
refreshredPack
()
{
if
(
GameMgr
.
LINK_LIST
[
1
])
{
this
.
_qhbMask
.
visible
=
false
;
this
.
_redPack
.
visible
=
false
;
}
else
{
this
.
_qhbMask
.
visible
=
true
;
this
.
_redPack
.
visible
=
true
;
}
}
}
}
\ 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