Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
babycare_xiaoxiao
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
王剑峰
babycare_xiaoxiao
Commits
a6a7d88e
Commit
a6a7d88e
authored
Jul 21, 2020
by
wjf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
5a0531d9
Changes
10
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
46559 additions
and
53 deletions
+46559
-53
output.js
output.js
+38313
-1
output.js.map
output.js.map
+1
-1
aa.js
scripts/aa.js
+1
-0
copyJs.js
scripts/copyJs.js
+1
-1
ResJson.ts
src/ResJson.ts
+8200
-28
FreePowerPanel.ts
src/panels/FreePowerPanel.ts
+5
-12
PlayScene.ts
src/scene/PlayScene.ts
+14
-8
RectsWaveAni.ts
src/something/anisCall/RectsWaveAni.ts
+8
-1
FirstPropGift.ts
src/something/uis/FirstPropGift.ts
+15
-0
GameGuide.ts
src/something/uis/GameGuide.ts
+1
-1
No files found.
output.js
View file @
a6a7d88e
This diff is collapsed.
Click to expand it.
output.js.map
View file @
a6a7d88e
This diff is collapsed.
Click to expand it.
scripts/aa.js
View file @
a6a7d88e
...
@@ -2,6 +2,7 @@
...
@@ -2,6 +2,7 @@
var
fs
=
require
(
"fs"
);
var
fs
=
require
(
"fs"
);
var
iconv
=
require
(
'iconv-lite'
);
var
iconv
=
require
(
'iconv-lite'
);
return
//读取json文件
//读取json文件
var
data
=
iconv
.
decode
(
fs
.
readFileSync
(
"./resource/skin.json"
),
"utf-8"
);
//GBK
var
data
=
iconv
.
decode
(
fs
.
readFileSync
(
"./resource/skin.json"
),
"utf-8"
);
//GBK
//反序列化
//反序列化
...
...
scripts/copyJs.js
View file @
a6a7d88e
...
@@ -6,7 +6,7 @@ var fs = require("fs");
...
@@ -6,7 +6,7 @@ var fs = require("fs");
// fs.readFileSync("./output.js")
// fs.readFileSync("./output.js")
// )
// )
// var endPath = 'D:/duibaGame/测试项目0527/taobaominiTest/client/pages/index1/';
// var endPath = 'D:/duibaGame/测试项目0527/taobaominiTest/client/pages/index1/';
var
endPath
=
'D:/duibaGame/淘宝项目/
threeSquirrels_tbmini/squirrel_adopt/squirrel_c_client
/client/pages/index/'
;
var
endPath
=
'D:/duibaGame/淘宝项目/
babycareXiaoxiaoleTBminiTry
/client/pages/index/'
;
var
version
=
Math
.
round
(
new
Date
().
getTime
()
/
1000
);
var
version
=
Math
.
round
(
new
Date
().
getTime
()
/
1000
);
// fs.writeFileSync(endPath + "output." + version + ".js", fs.readFileSync("./released/output.js"));
// fs.writeFileSync(endPath + "output." + version + ".js", fs.readFileSync("./released/output.js"));
fs
.
writeFileSync
(
endPath
+
"output.js"
,
fs
.
readFileSync
(
"./released/output.js"
));
fs
.
writeFileSync
(
endPath
+
"output.js"
,
fs
.
readFileSync
(
"./released/output.js"
));
...
...
src/ResJson.ts
View file @
a6a7d88e
This diff is collapsed.
Click to expand it.
src/panels/FreePowerPanel.ts
View file @
a6a7d88e
...
@@ -5,16 +5,9 @@ export class FreePowerPanel extends Panel {
...
@@ -5,16 +5,9 @@ export class FreePowerPanel extends Panel {
acceptBtn
:
FYGE
.
Button
;
acceptBtn
:
FYGE
.
Button
;
closeBtn
:
FYGE
.
Button
;
closeBtn
:
FYGE
.
Button
;
initUi
()
{
get
closeBtns
(){
return
[
this
.
closeBtn
,
this
.
acceptBtn
]
}
start
(
data
)
{
super
.
start
();
}
initEvents
()
{
super
.
initEvents
();
}
removeEvents
()
{
super
.
removeEvents
();
}
}
}
}
src/scene/PlayScene.ts
View file @
a6a7d88e
...
@@ -275,7 +275,7 @@ export class PlayScene extends Scene {
...
@@ -275,7 +275,7 @@ export class PlayScene extends Scene {
// data = { chapter: 1 }
// data = { chapter: 1 }
//第几关
//第几关
this
.
chapter
=
(
data
&&
data
.
chapter
)
?
data
.
chapter
:
1
;
this
.
chapter
=
(
data
&&
data
.
chapter
)
?
data
.
chapter
:
1
;
// this.chapter = 24
;
this
.
chapter
=
6
;
//关卡数据
//关卡数据
this
.
chapterData
=
getChapterData
(
this
.
chapter
);
this
.
chapterData
=
getChapterData
(
this
.
chapter
);
// this.chapterData.stepCount = 4
// this.chapterData.stepCount = 4
...
@@ -310,10 +310,15 @@ export class PlayScene extends Scene {
...
@@ -310,10 +310,15 @@ export class PlayScene extends Scene {
this
.
upsetElement
();
this
.
upsetElement
();
}
else
{
}
else
{
this
.
enableMouseEvt
(
true
);
this
.
enableMouseEvt
(
true
);
//首次送道具,的动画先出,然后再出引导
//首次送道具,的动画先出,然后再出引导 TODO
//引导
if
(
this
.
chapter
==
1
&&
Tools
.
gameData
.
isFristLogin
)
{
}
else
{
//游戏引导
this
.
initGuide
();
this
.
initGuide
();
}
}
}
}
}
}
}
//最后加载svga,为了判断是否要加大红包的动效
//最后加载svga,为了判断是否要加大红包的动效
...
@@ -322,10 +327,11 @@ export class PlayScene extends Scene {
...
@@ -322,10 +327,11 @@ export class PlayScene extends Scene {
AiControl
.
ins
.
init
(
this
.
lattices
);
AiControl
.
ins
.
init
(
this
.
lattices
);
//测试波纹
//测试波纹
// let fun = ()=>{
let
fun
=
()
=>
{
// RectsWaveAni(this.lattices,this.map,fun);
RectsWaveAni
(
this
.
lattices
,
this
.
map
,
fun
);
// }
console
.
log
(
1
)
// fun()
}
fun
()
}
}
/**
/**
...
...
src/something/anisCall/RectsWaveAni.ts
View file @
a6a7d88e
...
@@ -94,7 +94,14 @@ export function RectsWaveAni(
...
@@ -94,7 +94,14 @@ export function RectsWaveAni(
num
++
;
num
++
;
}
}
//删除外层空loop
for
(
let
m
=
loops
.
length
-
1
;
m
>=
0
;
m
--
)
{
if
(
!
loops
[
m
].
length
)
{
loops
.
pop
();
}
else
{
break
}
}
//动画
//动画
let
loopsLen
=
loops
.
length
let
loopsLen
=
loops
.
length
for
(
let
m
=
0
;
m
<
loops
.
length
;
m
++
)
{
for
(
let
m
=
0
;
m
<
loops
.
length
;
m
++
)
{
...
...
src/something/uis/FirstPropGift.ts
0 → 100644
View file @
a6a7d88e
import
{
RES
}
from
"../../../module/RES"
;
import
{
MsgBoard
}
from
"./GameGuide"
;
// 首次道具赠送
export
class
FirstPropGift
extends
FYGE
.
Container
{
constructor
()
{
super
();
//背景图片
this
.
addChild
(
new
FYGE
.
Shape
).
hitTestByPixel
=
false
;
//信息板
var
msgBoard
=
this
.
addChild
(
new
MsgBoard
());
msgBoard
.
position
.
set
((
750
-
604
)
/
2
,
1000
);
msgBoard
.
msg
=
"首次进入游戏,送你三个道具,让你通关无阻力!"
;
}
}
\ No newline at end of file
src/something/uis/GameGuide.ts
View file @
a6a7d88e
...
@@ -124,7 +124,7 @@ export class GameGuide extends FYGE.Container {
...
@@ -124,7 +124,7 @@ export class GameGuide extends FYGE.Container {
/**
/**
* 提示板
* 提示板
*/
*/
class
MsgBoard
extends
FYGE
.
Sprite
{
export
class
MsgBoard
extends
FYGE
.
Sprite
{
private
_msg
:
FYGE
.
TextField
private
_msg
:
FYGE
.
TextField
set
msg
(
value
)
{
set
msg
(
value
)
{
this
.
_msg
.
text
=
value
this
.
_msg
.
text
=
value
...
...
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