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
549ac9ed
Commit
549ac9ed
authored
May 20, 2020
by
zjz1994
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调整增加步数位置
parent
b33d2f90
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
21 deletions
+12
-21
MainScene.ts
egret/src/mainScene/MainScene.ts
+5
-5
MapScene.ts
egret/src/mapScene/MapScene.ts
+3
-3
snpmAdStatic.ts
egret/src/statics/snpmAdStatic.ts
+4
-13
No files found.
egret/src/mainScene/MainScene.ts
View file @
549ac9ed
...
...
@@ -493,7 +493,7 @@ export default class MainScene extends Scene {
this
.
addChildAt
(
this
.
festivalContainer
,
1
);
//道具使用时蒙层 无需加入场景,带入propBtnCo的位置数据
console
.
log
(
'偏移'
,
this
.
propBtnCon
.
y
,
this
.
propBtnCon
.
boomBtn
.
y
);
//
console.log('偏移',this.propBtnCon.y,this.propBtnCon.boomBtn.y);
this
.
propGuide
=
new
PropGuide
(
this
.
propBtnCon
.
y
,
this
.
islongScreen
);
this
.
propGuide
.
touchEnabled
=
true
;
...
...
@@ -1636,7 +1636,7 @@ export default class MainScene extends Scene {
this
.
lattices
[
festivalIndex
]
&&
//格子必须有
(
Tool
.
judgeSetFesEle
(
this
.
lattices
[
festivalIndex
])
||
!
this
.
lattices
[
festivalIndex
].
element
)
//没有元素也行
)
{
console
.
log
(
"节日元素loading"
);
//
console.log("节日元素loading");
this
[
'redrainbg'
].
visible
=
true
;
await
this
.
startPlayLoadingAni
();
this
[
'redrainbg'
].
visible
=
false
;
...
...
@@ -4318,7 +4318,7 @@ export default class MainScene extends Scene {
ele
.
playCandyDieAni
();
//这里面会去算个数
this
.
recoverEle
(
index
);
this
.
playAni
(
RecoverName
.
STEP_ANI
,
[
50
,
100
]);
this
.
playAni
(
RecoverName
.
STEP_ANI
,
[
120
,
125
]);
setTimeout
(()
=>
{
this
.
steps
+=
5
;
},
333
)
...
...
@@ -5350,7 +5350,7 @@ export default class MainScene extends Scene {
* @param tlidx 拍框猩猩的左上
*/
pongoPaiKuang
(
tlidx
:
number
){
console
.
log
(
"猩猩拍框"
);
//
console.log("猩猩拍框");
//随机发框
var
kuangarr
:
Array
<
number
>
=
new
Array
();
var
canusearr
:
Array
<
number
>
=
new
Array
();
//可以作为左上角的
...
...
@@ -6172,7 +6172,7 @@ export default class MainScene extends Scene {
//新增糖果转特效元素处理
setCandyToEffect
(
ele
){
if
(
ele
&&
ele
.
candy
&&
ele
.
candy
.
step
){
this
.
playAni
(
RecoverName
.
STEP_ANI
,
[
50
,
100
]);
this
.
playAni
(
RecoverName
.
STEP_ANI
,
[
120
,
125
]);
setTimeout
(()
=>
{
this
.
steps
+=
5
;
},
333
)
...
...
egret/src/mapScene/MapScene.ts
View file @
549ac9ed
...
...
@@ -141,7 +141,7 @@ export default class MapScene extends Scene {
}
else
{
this
.
islongScreen
=
true
;
}
console
.
log
(
"手机长短屏幕适配"
,
whl
,
this
.
islongScreen
);
//
console.log("手机长短屏幕适配",whl,this.islongScreen);
if
(
this
.
islongScreen
){
this
[
'adapttop'
].
y
=
50
;
this
[
'settingsx'
].
bottom
=
50
;
...
...
@@ -763,7 +763,7 @@ export default class MapScene extends Scene {
}
destroy
()
{
console
.
log
(
"map------------destroy"
);
//
console.log("map------------destroy");
super
.
destroy
();
// this.removeIcon();
...
...
@@ -1260,7 +1260,7 @@ export default class MapScene extends Scene {
}
protected
removeEvents
(){
console
.
log
(
"map-----------removeEvents"
);
//
console.log("map-----------removeEvents");
this
[
'goldBtn'
].
removeEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
this
.
onTap_goldBtn
,
this
);
this
[
'guide'
].
removeEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
this
.
onTap_guide
,
this
);
// this['act2Btn'].removeEventListener(egret.TouchEvent.TOUCH_TAP, this.onTap_act2btn, this);
...
...
egret/src/statics/snpmAdStatic.ts
View file @
549ac9ed
...
...
@@ -6,7 +6,7 @@ export class snpmAdStatic{
*/
static
snpmAdReport
(
type
:
string
,
from
:
string
,
adata
:
object
){
var
params
=
{};
console
.
log
(
"准备上报"
,
type
,
from
,
JSON
.
stringify
(
adata
));
//
console.log("准备上报",type,from,JSON.stringify(adata));
switch
(
from
){
case
'icon'
:
params
[
'eleid'
]
=
'bingoIndexAd'
;
...
...
@@ -59,7 +59,7 @@ export class snpmAdStatic{
*/
static
showAdReport
(
params
){
try
{
console
.
log
(
"曝光上报"
,
JSON
.
stringify
(
params
));
//
console.log("曝光上报",JSON.stringify(params));
let
elem
=
document
.
createElement
(
'div'
)
params
.
saData
.
eleid
=
params
.
eleid
;
elem
.
setAttribute
(
'sa-data'
,
JSON
.
stringify
(
params
.
saData
))
...
...
@@ -73,15 +73,6 @@ export class snpmAdStatic{
//expoManual
//exposure
window
[
'SAUP'
].
sendLogData
(
"expoManual"
,
elem
);
// window['SAUP'].sendLogData("expoManual", {
// tag:elem,
// sapmodid:params.sapmodid,
// event_name:'exposure',
// targeturl:params.targeturl,
// pageid:params.saData.pageid,
// modid:params.saData.modid,
// eleid:params.saData.eleid,
// });
}
}
catch
(
e
){
...
...
@@ -93,7 +84,7 @@ export class snpmAdStatic{
*/
static
clickAdReport
(
params
){
try
{
console
.
log
(
'点击上报'
,
JSON
.
stringify
(
params
));
//
console.log('点击上报',JSON.stringify(params));
if
(
params
.
targeturl
&&
params
.
targeturl
.
length
){
window
[
'$'
].
ajax
({
type
:
'get'
,
...
...
@@ -116,7 +107,7 @@ export class snpmAdStatic{
img
.
src
=
params
.
targeturl
;
}
if
(
window
[
'SAUP'
]
&&
window
[
'SAUP'
].
sendLogData
)
{
console
.
log
(
"广告点击上报"
,
params
.
saData
.
pageid
);
//
console.log("广告点击上报",params.saData.pageid);
//click
//comclick
window
[
'SAUP'
].
sendLogData
(
'click'
,{
...
...
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