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
01b0d3b0
Commit
01b0d3b0
authored
Jul 21, 2020
by
haiyoucuv
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab2.dui88.com/MrKwon/babycare_xiaoxiao
parents
251f49c5
965bf3c6
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 @
01b0d3b0
This diff is collapsed.
Click to expand it.
output.js.map
View file @
01b0d3b0
This diff is collapsed.
Click to expand it.
scripts/aa.js
View file @
01b0d3b0
...
...
@@ -2,6 +2,7 @@
var
fs
=
require
(
"fs"
);
var
iconv
=
require
(
'iconv-lite'
);
return
//读取json文件
var
data
=
iconv
.
decode
(
fs
.
readFileSync
(
"./resource/skin.json"
),
"utf-8"
);
//GBK
//反序列化
...
...
scripts/copyJs.js
View file @
01b0d3b0
...
...
@@ -6,7 +6,7 @@ var fs = require("fs");
// fs.readFileSync("./output.js")
// )
// 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
);
// fs.writeFileSync(endPath + "output." + version + ".js", fs.readFileSync("./released/output.js"));
fs
.
writeFileSync
(
endPath
+
"output.js"
,
fs
.
readFileSync
(
"./released/output.js"
));
...
...
src/ResJson.ts
View file @
01b0d3b0
This diff is collapsed.
Click to expand it.
src/panels/FreePowerPanel.ts
View file @
01b0d3b0
...
...
@@ -5,16 +5,9 @@ export class FreePowerPanel extends Panel {
acceptBtn
:
FYGE
.
Button
;
closeBtn
:
FYGE
.
Button
;
initUi
()
{
}
start
(
data
)
{
super
.
start
();
}
initEvents
()
{
super
.
initEvents
();
}
removeEvents
()
{
super
.
removeEvents
();
get
closeBtns
(){
return
[
this
.
closeBtn
,
this
.
acceptBtn
]
}
}
src/scene/PlayScene.ts
View file @
01b0d3b0
...
...
@@ -275,7 +275,7 @@ export class PlayScene extends Scene {
// data = { chapter: 1 }
//第几关
this
.
chapter
=
(
data
&&
data
.
chapter
)
?
data
.
chapter
:
1
;
// this.chapter = 24
;
this
.
chapter
=
6
;
//关卡数据
this
.
chapterData
=
getChapterData
(
this
.
chapter
);
// this.chapterData.stepCount = 4
...
...
@@ -310,10 +310,15 @@ export class PlayScene extends Scene {
this
.
upsetElement
();
}
else
{
this
.
enableMouseEvt
(
true
);
//首次送道具,的动画先出,然后再出引导
//引导
//首次送道具,的动画先出,然后再出引导 TODO
if
(
this
.
chapter
==
1
&&
Tools
.
gameData
.
isFristLogin
)
{
}
else
{
//游戏引导
this
.
initGuide
();
}
}
}
}
//最后加载svga,为了判断是否要加大红包的动效
...
...
@@ -322,10 +327,11 @@ export class PlayScene extends Scene {
AiControl
.
ins
.
init
(
this
.
lattices
);
//测试波纹
// let fun = ()=>{
// RectsWaveAni(this.lattices,this.map,fun);
// }
// fun()
let
fun
=
()
=>
{
RectsWaveAni
(
this
.
lattices
,
this
.
map
,
fun
);
console
.
log
(
1
)
}
fun
()
}
/**
...
...
src/something/anisCall/RectsWaveAni.ts
View file @
01b0d3b0
...
...
@@ -94,7 +94,14 @@ export function RectsWaveAni(
num
++
;
}
//删除外层空loop
for
(
let
m
=
loops
.
length
-
1
;
m
>=
0
;
m
--
)
{
if
(
!
loops
[
m
].
length
)
{
loops
.
pop
();
}
else
{
break
}
}
//动画
let
loopsLen
=
loops
.
length
for
(
let
m
=
0
;
m
<
loops
.
length
;
m
++
)
{
...
...
src/something/uis/FirstPropGift.ts
0 → 100644
View file @
01b0d3b0
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 @
01b0d3b0
...
...
@@ -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
set
msg
(
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