Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
X
xiaoxiaole
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
wildfirecode13
xiaoxiaole
Commits
abf327ea
Commit
abf327ea
authored
Jan 10, 2020
by
wildfirecode
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
51f8a615
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
26 deletions
+8
-26
Tool.ts
egret/src/something/Tool.ts
+3
-3
Element.ts
egret/src/something/class/Element.ts
+4
-22
StartScene.ts
egret/src/startScene/StartScene.ts
+1
-1
No files found.
egret/src/something/Tool.ts
View file @
abf327ea
...
@@ -298,7 +298,7 @@ export class Tool {
...
@@ -298,7 +298,7 @@ export class Tool {
!
lat
.
element
.
hasState
(
StateType
.
HAIRBALLGREY
)
&&
!
lat
.
element
.
hasState
(
StateType
.
HAIRBALLGREY
)
&&
!
lat
.
element
.
hasState
(
StateType
.
HAIRBALLBROWN
)
&&
!
lat
.
element
.
hasState
(
StateType
.
HAIRBALLBROWN
)
&&
!
lat
.
element
.
hasState
(
StateType
.
BLOCK_LOCK
)
&&
!
lat
.
element
.
hasState
(
StateType
.
BLOCK_LOCK
)
&&
lat
.
element
.
type
!=
ElementType
.
JELLY_MONSTER
,
lat
.
element
.
type
!=
ElementType
.
JELLY_MONSTER
&&
lat
.
element
.
type
!=
ElementType
.
FESTIVALELE_SMALL
lat
.
element
.
type
!=
ElementType
.
FESTIVALELE_SMALL
)
{
)
{
return
true
return
true
...
@@ -336,7 +336,7 @@ export class Tool {
...
@@ -336,7 +336,7 @@ export class Tool {
return
false
return
false
}
}
//上方元素为冰淇淋
//上方元素为冰淇淋
else
if
(
lat
.
element
.
type
==
ElementType
.
LOLLIPOP
||
else
if
(
lat
.
element
.
type
==
ElementType
.
LOLLIPOP
||
lat
.
element
.
type
==
ElementType
.
JELLY_MONSTER
)
{
lat
.
element
.
type
==
ElementType
.
JELLY_MONSTER
)
{
return
false
return
false
}
}
...
@@ -673,7 +673,7 @@ export class Tool {
...
@@ -673,7 +673,7 @@ export class Tool {
if
(
this
.
judgeMove
(
up
)
&&
up
.
element
.
type
!=
ElementType
.
LOLLIPOP
)
return
[
effectElement
,
up
.
element
];
if
(
this
.
judgeMove
(
up
)
&&
up
.
element
.
type
!=
ElementType
.
LOLLIPOP
)
return
[
effectElement
,
up
.
element
];
//下格子
//下格子
var
down
=
lattices
[
effectElement
.
index
+
Tool
.
colNum
];
var
down
=
lattices
[
effectElement
.
index
+
Tool
.
colNum
];
if
(
this
.
judgeMove
(
down
)
&&
down
.
element
.
type
!=
ElementType
.
LOLLIPOP
)
return
[
effectElement
,
down
.
element
];
if
(
this
.
judgeMove
(
down
)
&&
down
.
element
.
type
!=
ElementType
.
LOLLIPOP
)
return
[
effectElement
,
down
.
element
];
//左格子
//左格子
var
col
=
Tool
.
indexToRc
(
effectElement
.
index
)[
1
];
//列数
var
col
=
Tool
.
indexToRc
(
effectElement
.
index
)[
1
];
//列数
if
(
col
!=
0
)
{
if
(
col
!=
0
)
{
...
...
egret/src/something/class/Element.ts
View file @
abf327ea
...
@@ -42,28 +42,10 @@ export class Element extends eui.Component {
...
@@ -42,28 +42,10 @@ export class Element extends eui.Component {
mv
.
anchorOffsetY
=
150
;
mv
.
anchorOffsetY
=
150
;
mv
.
x
=
-
3
;
mv
.
x
=
-
3
;
mv
.
y
=
-
6
;
mv
.
y
=
-
6
;
// mv.gotoAndPlay(361, true);
// setInterval(() => {
// mv.addEventListener(egret.Event.ENTER_FRAME, () => {
// this.toAction();
// // if (mv.currentFrame == 360) //待机
// }, 5000);
// // mv.gotoAndPlay(1, true);
this
.
toStandByAction
();
// if (mv.currentFrame == 508) { //向上吹
// mv.gotoAndPlay(361, true);
// }
// if (mv.currentFrame == 361 + 100) {
// const tex: egret.Texture = RES.getRes("ele20_png");
// const pic = new egret.Bitmap(tex);
// pic.anchorOffsetX = tex.textureWidth / 2;
// pic.anchorOffsetY = tex.textureHeight;
// pic.x = p[0];
// pic.y = p[1];
// this.stage.addChild(pic);
// egret.Tween.get(pic).set({ scaleX: 0, scaleY: 0 }).to({ scaleX: 1, scaleY: 1 }, 300);
// }
// }, this);
setInterval
(()
=>
{
this
.
toAction
();
},
5000
);
}
}
toStandByAction
()
{
toStandByAction
()
{
...
...
egret/src/startScene/StartScene.ts
View file @
abf327ea
...
@@ -117,7 +117,7 @@ export const createData = () => {
...
@@ -117,7 +117,7 @@ export const createData = () => {
if
(
_startSceneData
)
return
_startSceneData
;
if
(
_startSceneData
)
return
_startSceneData
;
const
startSceneData
:
any
=
{};
const
startSceneData
:
any
=
{};
_startSceneData
=
startSceneData
;
_startSceneData
=
startSceneData
;
if
(
_startSceneData
.
level
===
null
||
_startSceneData
.
level
=
==
undefined
)
if
(
_startSceneData
.
level
!==
null
&&
_startSceneData
.
level
!
==
undefined
)
delete
_startSceneData
.
level
delete
_startSceneData
.
level
const
repeatCount
=
getRepeatCount
();
const
repeatCount
=
getRepeatCount
();
...
...
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