Commit 01b0d3b0 authored by haiyoucuv's avatar haiyoucuv
parents 251f49c5 965bf3c6
This diff is collapsed.
This diff is collapsed.
...@@ -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
//反序列化 //反序列化
......
...@@ -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"));
......
This diff is collapsed.
...@@ -4,17 +4,10 @@ export class FreePowerPanel extends Panel { ...@@ -4,17 +4,10 @@ export class FreePowerPanel extends Panel {
get skinName() { return "FreePowerPanel" } get skinName() { return "FreePowerPanel" }
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();
} }
} }
...@@ -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,9 +310,14 @@ export class PlayScene extends Scene { ...@@ -310,9 +310,14 @@ 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) {
this.initGuide();
} else {
//游戏引导
this.initGuide();
}
} }
} }
} }
...@@ -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()
} }
/** /**
......
...@@ -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++) {
......
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
...@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment