提交 商城

This commit is contained in:
computer\尼卡 2025-07-02 15:32:19 +08:00
parent 497c5853be
commit cc21609064
25 changed files with 4963 additions and 942 deletions

File diff suppressed because it is too large Load Diff

View File

@ -191,18 +191,21 @@
}, },
{ {
"__id__": 260 "__id__": 260
},
{
"__id__": 262
} }
], ],
"_active": true, "_active": true,
"_components": [ "_components": [
{
"__id__": 262
},
{
"__id__": 263
},
{ {
"__id__": 264 "__id__": 264
},
{
"__id__": 265
},
{
"__id__": 266
} }
], ],
"_prefab": null, "_prefab": null,
@ -12365,6 +12368,100 @@
"_N$enableBatch": false, "_N$enableBatch": false,
"_id": "c8qlI72JZCSKV6jXEK7mpe" "_id": "c8qlI72JZCSKV6jXEK7mpe"
}, },
{
"__type__": "cc.Node",
"_name": "体力效果01",
"_objFlags": 0,
"_parent": {
"__id__": 4
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 263
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 1080,
"height": 2340
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
1131.696,
0,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "1chk9A1f9NoIkfwz7fUbpr"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 262
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "9fc5138d-7d91-4862-af7b-7dbdeb95d534"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "d1ZfUHyKBM75/O7jxR0N5v"
},
{ {
"__type__": "cc.Canvas", "__type__": "cc.Canvas",
"_name": "", "_name": "",

View File

@ -103,9 +103,13 @@ export default class NewClass extends cc.Component {
} }
//打开heath弹窗
// this.openHeath();
} }
//开始倒计时 //开始倒计时
startTimeCutDown() { startTimeCutDown() {
this.scheduleCallback = function () { this.scheduleCallback = function () {

34
assets/Script/heathnum.ts Normal file
View File

@ -0,0 +1,34 @@
import NumberToImage from "./NumberToImage";
const { ccclass, property } = cc._decorator;
@ccclass
export default class NewClass extends cc.Component {
//商店界面
@property(cc.Node)
heath: cc.Node = null;
// onLoad () {}
//金币数量
@property(cc.Node)
coin: cc.Node = null;
start() {
this.openShop();
}
//打开商店界面
openShop() {
NumberToImage.numberToImageNodes(cc.fx.GameConfig.GM_INFO.hp, 30, 15, "coin_", this.coin, true);
}
//关闭商店界面
closeShop() {
//销毁预制体
this.heath.destroy();
}
// update (dt) {}
}

View File

@ -0,0 +1,10 @@
{
"ver": "1.1.0",
"uuid": "6624f85c-b85e-4317-aee0-cd25625a1455",
"importer": "typescript",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}

View File

@ -89,6 +89,7 @@ export class GameConfig {
musicOpen: boolean; //音乐 musicOpen: boolean; //音乐
effectOpen: boolean; //音效 effectOpen: boolean; //音效
vibrateOpen: boolean; vibrateOpen: boolean;
health: number; //体力值
}; };
//游戏内信息 //游戏内信息
@ -219,7 +220,7 @@ export class GameConfig {
musicOpen: true, //音乐 musicOpen: true, //音乐
effectOpen: true, //音效 effectOpen: true, //音效
vibrateOpen: true, //震动 vibrateOpen: true, //震动
health: 0, //体力值
}; };
// this.setCode(this.getKey("scode")); // this.setCode(this.getKey("scode"));
// this.GM_INFO.level = 0; // this.GM_INFO.level = 0;

View File

@ -15,7 +15,7 @@
<key>spriteSourceSize</key> <key>spriteSourceSize</key>
<string>{281,71}</string> <string>{281,71}</string>
<key>textureRect</key> <key>textureRect</key>
<string>{{658,1297},{281,71}}</string> <string>{{593,1018},{281,71}}</string>
<key>textureRotated</key> <key>textureRotated</key>
<false/> <false/>
</dict> </dict>
@ -30,7 +30,7 @@
<key>spriteSourceSize</key> <key>spriteSourceSize</key>
<string>{76,82}</string> <string>{76,82}</string>
<key>textureRect</key> <key>textureRect</key>
<string>{{869,1370},{76,82}}</string> <string>{{1524,1433},{76,82}}</string>
<key>textureRotated</key> <key>textureRotated</key>
<false/> <false/>
</dict> </dict>
@ -45,7 +45,7 @@
<key>spriteSourceSize</key> <key>spriteSourceSize</key>
<string>{636,174}</string> <string>{636,174}</string>
<key>textureRect</key> <key>textureRect</key>
<string>{{769,1},{636,174}}</string> <string>{{143,780},{636,174}}</string>
<key>textureRotated</key> <key>textureRotated</key>
<true/> <true/>
</dict> </dict>
@ -60,7 +60,7 @@
<key>spriteSourceSize</key> <key>spriteSourceSize</key>
<string>{348,66}</string> <string>{348,66}</string>
<key>textureRect</key> <key>textureRect</key>
<string>{{585,796},{348,66}}</string> <string>{{1137,788},{348,66}}</string>
<key>textureRotated</key> <key>textureRotated</key>
<false/> <false/>
</dict> </dict>
@ -75,7 +75,7 @@
<key>spriteSourceSize</key> <key>spriteSourceSize</key>
<string>{154,172}</string> <string>{154,172}</string>
<key>textureRect</key> <key>textureRect</key>
<string>{{585,484},{154,172}}</string> <string>{{1573,243},{154,172}}</string>
<key>textureRotated</key> <key>textureRotated</key>
<true/> <true/>
</dict> </dict>
@ -90,9 +90,9 @@
<key>spriteSourceSize</key> <key>spriteSourceSize</key>
<string>{281,64}</string> <string>{281,64}</string>
<key>textureRect</key> <key>textureRect</key>
<string>{{869,1454},{281,64}}</string> <string>{{756,1157},{281,64}}</string>
<key>textureRotated</key> <key>textureRotated</key>
<true/> <false/>
</dict> </dict>
<key>chuizi.png</key> <key>chuizi.png</key>
<dict> <dict>
@ -105,7 +105,7 @@
<key>spriteSourceSize</key> <key>spriteSourceSize</key>
<string>{316,316}</string> <string>{316,316}</string>
<key>textureRect</key> <key>textureRect</key>
<string>{{583,989},{306,316}}</string> <string>{{604,201},{306,316}}</string>
<key>textureRotated</key> <key>textureRotated</key>
<true/> <true/>
</dict> </dict>
@ -120,7 +120,7 @@
<key>spriteSourceSize</key> <key>spriteSourceSize</key>
<string>{150,150}</string> <string>{150,150}</string>
<key>textureRect</key> <key>textureRect</key>
<string>{{639,350},{126,132}}</string> <string>{{409,1388},{126,132}}</string>
<key>textureRotated</key> <key>textureRotated</key>
<false/> <false/>
</dict> </dict>
@ -135,7 +135,7 @@
<key>spriteSourceSize</key> <key>spriteSourceSize</key>
<string>{284,284}</string> <string>{284,284}</string>
<key>textureRect</key> <key>textureRect</key>
<string>{{533,1408},{238,284}}</string> <string>{{896,805},{238,284}}</string>
<key>textureRotated</key> <key>textureRotated</key>
<false/> <false/>
</dict> </dict>
@ -150,9 +150,9 @@
<key>spriteSourceSize</key> <key>spriteSourceSize</key>
<string>{80,100}</string> <string>{80,100}</string>
<key>textureRect</key> <key>textureRect</key>
<string>{{576,1297},{80,100}}</string> <string>{{1602,1433},{80,100}}</string>
<key>textureRotated</key> <key>textureRotated</key>
<false/> <true/>
</dict> </dict>
<key>close.png</key> <key>close.png</key>
<dict> <dict>
@ -165,9 +165,9 @@
<key>spriteSourceSize</key> <key>spriteSourceSize</key>
<string>{264,104}</string> <string>{264,104}</string>
<key>textureRect</key> <key>textureRect</key>
<string>{{479,532},{264,104}}</string> <string>{{143,1418},{264,104}}</string>
<key>textureRotated</key> <key>textureRotated</key>
<true/> <false/>
</dict> </dict>
<key>closet.png</key> <key>closet.png</key>
<dict> <dict>
@ -180,7 +180,7 @@
<key>spriteSourceSize</key> <key>spriteSourceSize</key>
<string>{66,66}</string> <string>{66,66}</string>
<key>textureRect</key> <key>textureRect</key>
<string>{{773,1534},{66,66}}</string> <string>{{1479,889},{66,66}}</string>
<key>textureRotated</key> <key>textureRotated</key>
<false/> <false/>
</dict> </dict>
@ -195,9 +195,9 @@
<key>spriteSourceSize</key> <key>spriteSourceSize</key>
<string>{312,62}</string> <string>{312,62}</string>
<key>textureRect</key> <key>textureRect</key>
<string>{{1,911},{312,62}}</string> <string>{{1545,1119},{312,62}}</string>
<key>textureRotated</key> <key>textureRotated</key>
<false/> <true/>
</dict> </dict>
<key>coins.png</key> <key>coins.png</key>
<dict> <dict>
@ -210,7 +210,22 @@
<key>spriteSourceSize</key> <key>spriteSourceSize</key>
<string>{70,71}</string> <string>{70,71}</string>
<key>textureRect</key> <key>textureRect</key>
<string>{{773,1462},{70,71}}</string> <string>{{1041,1091},{70,71}}</string>
<key>textureRotated</key>
<true/>
</dict>
<key>coins4.png</key>
<dict>
<key>aliases</key>
<array/>
<key>spriteOffset</key>
<string>{0,0}</string>
<key>spriteSize</key>
<string>{171,191}</string>
<key>spriteSourceSize</key>
<string>{171,191}</string>
<key>textureRect</key>
<string>{{1551,711},{171,191}}</string>
<key>textureRotated</key> <key>textureRotated</key>
<true/> <true/>
</dict> </dict>
@ -225,7 +240,37 @@
<key>spriteSourceSize</key> <key>spriteSourceSize</key>
<string>{234,36}</string> <string>{234,36}</string>
<key>textureRect</key> <key>textureRect</key>
<string>{{907,923},{234,36}}</string> <string>{{1098,201},{234,36}}</string>
<key>textureRotated</key>
<true/>
</dict>
<key>dijiguan.png</key>
<dict>
<key>aliases</key>
<array/>
<key>spriteOffset</key>
<string>{0,0}</string>
<key>spriteSize</key>
<string>{314,96}</string>
<key>spriteSourceSize</key>
<string>{314,96}</string>
<key>textureRect</key>
<string>{{1381,1136},{314,96}}</string>
<key>textureRotated</key>
<true/>
</dict>
<key>dikuang.png</key>
<dict>
<key>aliases</key>
<array/>
<key>spriteOffset</key>
<string>{0,0}</string>
<key>spriteSize</key>
<string>{802,118}</string>
<key>spriteSourceSize</key>
<string>{802,118}</string>
<key>textureRect</key>
<string>{{1,1},{802,118}}</string>
<key>textureRotated</key> <key>textureRotated</key>
<true/> <true/>
</dict> </dict>
@ -240,9 +285,9 @@
<key>spriteSourceSize</key> <key>spriteSourceSize</key>
<string>{616,100}</string> <string>{616,100}</string>
<key>textureRect</key> <key>textureRect</key>
<string>{{1,377},{616,96}}</string> <string>{{495,749},{616,96}}</string>
<key>textureRotated</key> <key>textureRotated</key>
<false/> <true/>
</dict> </dict>
<key>doudakai.png</key> <key>doudakai.png</key>
<dict> <dict>
@ -255,7 +300,37 @@
<key>spriteSourceSize</key> <key>spriteSourceSize</key>
<string>{322,64}</string> <string>{322,64}</string>
<key>textureRect</key> <key>textureRect</key>
<string>{{583,923},{322,64}}</string> <string>{{1479,1109},{322,64}}</string>
<key>textureRotated</key>
<true/>
</dict>
<key>effect.png</key>
<dict>
<key>aliases</key>
<array/>
<key>spriteOffset</key>
<string>{0,0}</string>
<key>spriteSize</key>
<string>{116,122}</string>
<key>spriteSourceSize</key>
<string>{116,122}</string>
<key>textureRect</key>
<string>{{1615,125},{116,122}}</string>
<key>textureRotated</key>
<true/>
</dict>
<key>effects.png</key>
<dict>
<key>aliases</key>
<array/>
<key>spriteOffset</key>
<string>{0,0}</string>
<key>spriteSize</key>
<string>{116,122}</string>
<key>spriteSourceSize</key>
<string>{116,122}</string>
<key>textureRect</key>
<string>{{756,1223},{116,122}}</string>
<key>textureRotated</key> <key>textureRotated</key>
<false/> <false/>
</dict> </dict>
@ -270,7 +345,22 @@
<key>spriteSourceSize</key> <key>spriteSourceSize</key>
<string>{144,164}</string> <string>{144,164}</string>
<key>textureRect</key> <key>textureRect</key>
<string>{{1,1261},{144,164}}</string> <string>{{920,513},{144,164}}</string>
<key>textureRotated</key>
<true/>
</dict>
<key>fanhui.png</key>
<dict>
<key>aliases</key>
<array/>
<key>spriteOffset</key>
<string>{0,0}</string>
<key>spriteSize</key>
<string>{434,144}</string>
<key>spriteSourceSize</key>
<string>{434,144}</string>
<key>textureRect</key>
<string>{{1137,224},{434,144}}</string>
<key>textureRotated</key> <key>textureRotated</key>
<false/> <false/>
</dict> </dict>
@ -285,10 +375,25 @@
<key>spriteSourceSize</key> <key>spriteSourceSize</key>
<string>{434,144}</string> <string>{434,144}</string>
<key>textureRect</key> <key>textureRect</key>
<string>{{1,698},{434,144}}</string> <string>{{1137,370},{434,144}}</string>
<key>textureRotated</key> <key>textureRotated</key>
<false/> <false/>
</dict> </dict>
<key>gongxiguoguan.png</key>
<dict>
<key>aliases</key>
<array/>
<key>spriteOffset</key>
<string>{0,0}</string>
<key>spriteSize</key>
<string>{747,203}</string>
<key>spriteSourceSize</key>
<string>{747,203}</string>
<key>textureRect</key>
<string>{{223,1},{747,203}}</string>
<key>textureRotated</key>
<true/>
</dict>
<key>goon.png</key> <key>goon.png</key>
<dict> <dict>
<key>aliases</key> <key>aliases</key>
@ -300,7 +405,7 @@
<key>spriteSourceSize</key> <key>spriteSourceSize</key>
<string>{476,164}</string> <string>{476,164}</string>
<key>textureRect</key> <key>textureRect</key>
<string>{{1,532},{476,164}}</string> <string>{{1137,58},{476,164}}</string>
<key>textureRotated</key> <key>textureRotated</key>
<false/> <false/>
</dict> </dict>
@ -315,7 +420,7 @@
<key>spriteSourceSize</key> <key>spriteSourceSize</key>
<string>{412,65}</string> <string>{412,65}</string>
<key>textureRect</key> <key>textureRect</key>
<string>{{1,844},{412,65}}</string> <string>{{1137,662},{412,65}}</string>
<key>textureRotated</key> <key>textureRotated</key>
<false/> <false/>
</dict> </dict>
@ -330,7 +435,7 @@
<key>spriteSourceSize</key> <key>spriteSourceSize</key>
<string>{316,316}</string> <string>{316,316}</string>
<key>textureRect</key> <key>textureRect</key>
<string>{{289,1427},{242,294}}</string> <string>{{1137,1136},{242,294}}</string>
<key>textureRotated</key> <key>textureRotated</key>
<false/> <false/>
</dict> </dict>
@ -345,9 +450,9 @@
<key>spriteSourceSize</key> <key>spriteSourceSize</key>
<string>{150,150}</string> <string>{150,150}</string>
<key>textureRect</key> <key>textureRect</key>
<string>{{314,1029},{108,130}}</string> <string>{{462,639},{108,130}}</string>
<key>textureRotated</key> <key>textureRotated</key>
<false/> <true/>
</dict> </dict>
<key>jianshao.png</key> <key>jianshao.png</key>
<dict> <dict>
@ -360,7 +465,22 @@
<key>spriteSourceSize</key> <key>spriteSourceSize</key>
<string>{363,57}</string> <string>{363,57}</string>
<key>textureRect</key> <key>textureRect</key>
<string>{{583,864},{363,57}}</string> <string>{{1137,729},{363,57}}</string>
<key>textureRotated</key>
<false/>
</dict>
<key>jixu.png</key>
<dict>
<key>aliases</key>
<array/>
<key>spriteOffset</key>
<string>{0,0}</string>
<key>spriteSize</key>
<string>{476,164}</string>
<key>spriteSourceSize</key>
<string>{476,164}</string>
<key>textureRect</key>
<string>{{1137,58},{476,164}}</string>
<key>textureRotated</key> <key>textureRotated</key>
<false/> <false/>
</dict> </dict>
@ -375,7 +495,7 @@
<key>spriteSourceSize</key> <key>spriteSourceSize</key>
<string>{154,172}</string> <string>{154,172}</string>
<key>textureRect</key> <key>textureRect</key>
<string>{{759,639},{154,172}}</string> <string>{{1573,399},{154,172}}</string>
<key>textureRotated</key> <key>textureRotated</key>
<true/> <true/>
</dict> </dict>
@ -390,7 +510,22 @@
<key>spriteSourceSize</key> <key>spriteSourceSize</key>
<string>{109,32}</string> <string>{109,32}</string>
<key>textureRect</key> <key>textureRect</key>
<string>{{901,1159},{109,32}}</string> <string>{{428,639},{109,32}}</string>
<key>textureRotated</key>
<true/>
</dict>
<key>meijinbi.png</key>
<dict>
<key>aliases</key>
<array/>
<key>spriteOffset</key>
<string>{0,0}</string>
<key>spriteSize</key>
<string>{158,44}</string>
<key>spriteSourceSize</key>
<string>{158,44}</string>
<key>textureRect</key>
<string>{{1502,729},{158,44}}</string>
<key>textureRotated</key> <key>textureRotated</key>
<true/> <true/>
</dict> </dict>
@ -405,7 +540,37 @@
<key>spriteSourceSize</key> <key>spriteSourceSize</key>
<string>{582,55}</string> <string>{582,55}</string>
<key>textureRect</key> <key>textureRect</key>
<string>{{1,475},{582,55}}</string> <string>{{1137,1},{582,55}}</string>
<key>textureRotated</key>
<false/>
</dict>
<key>next.png</key>
<dict>
<key>aliases</key>
<array/>
<key>spriteOffset</key>
<string>{0,0}</string>
<key>spriteSize</key>
<string>{636,174}</string>
<key>spriteSourceSize</key>
<string>{636,174}</string>
<key>textureRect</key>
<string>{{319,750},{636,174}}</string>
<key>textureRotated</key>
<true/>
</dict>
<key>ninyihuode.png</key>
<dict>
<key>aliases</key>
<array/>
<key>spriteOffset</key>
<string>{0,0}</string>
<key>spriteSize</key>
<string>{189,43}</string>
<key>spriteSourceSize</key>
<string>{189,43}</string>
<key>textureRect</key>
<string>{{1548,884},{189,43}}</string>
<key>textureRotated</key> <key>textureRotated</key>
<false/> <false/>
</dict> </dict>
@ -420,9 +585,9 @@
<key>spriteSourceSize</key> <key>spriteSourceSize</key>
<string>{766,56}</string> <string>{766,56}</string>
<key>textureRect</key> <key>textureRect</key>
<string>{{1,1},{766,56}}</string> <string>{{165,1},{766,56}}</string>
<key>textureRotated</key> <key>textureRotated</key>
<false/> <true/>
</dict> </dict>
<key>nulldaoju.png</key> <key>nulldaoju.png</key>
<dict> <dict>
@ -435,7 +600,7 @@
<key>spriteSourceSize</key> <key>spriteSourceSize</key>
<string>{154,172}</string> <string>{154,172}</string>
<key>textureRect</key> <key>textureRect</key>
<string>{{585,640},{154,172}}</string> <string>{{1573,555},{154,172}}</string>
<key>textureRotated</key> <key>textureRotated</key>
<true/> <true/>
</dict> </dict>
@ -450,7 +615,7 @@
<key>spriteSourceSize</key> <key>spriteSourceSize</key>
<string>{264,104}</string> <string>{264,104}</string>
<key>textureRect</key> <key>textureRect</key>
<string>{{314,1161},{264,104}}</string> <string>{{593,1091},{264,104}}</string>
<key>textureRotated</key> <key>textureRotated</key>
<true/> <true/>
</dict> </dict>
@ -465,7 +630,7 @@
<key>spriteSourceSize</key> <key>spriteSourceSize</key>
<string>{314,96}</string> <string>{314,96}</string>
<key>textureRect</key> <key>textureRect</key>
<string>{{677,201},{3,3}}</string> <string>{{1,1499},{3,3}}</string>
<key>textureRotated</key> <key>textureRotated</key>
<false/> <false/>
</dict> </dict>
@ -480,7 +645,22 @@
<key>spriteSourceSize</key> <key>spriteSourceSize</key>
<string>{434,144}</string> <string>{434,144}</string>
<key>textureRect</key> <key>textureRect</key>
<string>{{437,798},{434,144}}</string> <string>{{1137,516},{434,144}}</string>
<key>textureRotated</key>
<false/>
</dict>
<key>set.png</key>
<dict>
<key>aliases</key>
<array/>
<key>spriteOffset</key>
<string>{0,0}</string>
<key>spriteSize</key>
<string>{154,174}</string>
<key>spriteSourceSize</key>
<string>{154,174}</string>
<key>textureRect</key>
<string>{{922,201},{154,174}}</string>
<key>textureRotated</key> <key>textureRotated</key>
<true/> <true/>
</dict> </dict>
@ -495,7 +675,7 @@
<key>spriteSourceSize</key> <key>spriteSourceSize</key>
<string>{283,64}</string> <string>{283,64}</string>
<key>textureRect</key> <key>textureRect</key>
<string>{{1,1195},{283,64}}</string> <string>{{756,1091},{283,64}}</string>
<key>textureRotated</key> <key>textureRotated</key>
<false/> <false/>
</dict> </dict>
@ -510,9 +690,9 @@
<key>spriteSourceSize</key> <key>spriteSourceSize</key>
<string>{316,316}</string> <string>{316,316}</string>
<key>textureRect</key> <key>textureRect</key>
<string>{{1,1427},{286,300}}</string> <string>{{594,730},{286,300}}</string>
<key>textureRotated</key> <key>textureRotated</key>
<false/> <true/>
</dict> </dict>
<key>stars.png</key> <key>stars.png</key>
<dict> <dict>
@ -525,9 +705,24 @@
<key>spriteSourceSize</key> <key>spriteSourceSize</key>
<string>{150,150}</string> <string>{150,150}</string>
<key>textureRect</key> <key>textureRect</key>
<string>{{315,911},{116,120}}</string> <string>{{874,1223},{116,120}}</string>
<key>textureRotated</key> <key>textureRotated</key>
<true/> <false/>
</dict>
<key>start.png</key>
<dict>
<key>aliases</key>
<array/>
<key>spriteOffset</key>
<string>{0,0}</string>
<key>spriteSize</key>
<string>{520,198}</string>
<key>spriteSourceSize</key>
<string>{520,198}</string>
<key>textureRect</key>
<string>{{604,1},{520,198}}</string>
<key>textureRotated</key>
<false/>
</dict> </dict>
<key>stop.png</key> <key>stop.png</key>
<dict> <dict>
@ -540,10 +735,100 @@
<key>spriteSourceSize</key> <key>spriteSourceSize</key>
<string>{154,172}</string> <string>{154,172}</string>
<key>textureRect</key> <key>textureRect</key>
<string>{{420,1234},{154,172}}</string> <string>{{922,357},{154,172}}</string>
<key>textureRotated</key>
<true/>
</dict>
<key>stopzi.png</key>
<dict>
<key>aliases</key>
<array/>
<key>spriteOffset</key>
<string>{0,0}</string>
<key>spriteSize</key>
<string>{150,65}</string>
<key>spriteSourceSize</key>
<string>{150,65}</string>
<key>textureRect</key>
<string>{{1479,957},{150,65}}</string>
<key>textureRotated</key>
<true/>
</dict>
<key>tiaodik.png</key>
<dict>
<key>aliases</key>
<array/>
<key>spriteOffset</key>
<string>{0,0}</string>
<key>spriteSize</key>
<string>{154,598}</string>
<key>spriteSourceSize</key>
<string>{154,598}</string>
<key>textureRect</key>
<string>{{537,1367},{154,598}}</string>
<key>textureRotated</key>
<true/>
</dict>
<key>tili.png</key>
<dict>
<key>aliases</key>
<array/>
<key>spriteOffset</key>
<string>{0,0}</string>
<key>spriteSize</key>
<string>{127,65}</string>
<key>spriteSourceSize</key>
<string>{127,65}</string>
<key>textureRect</key>
<string>{{1615,58},{127,65}}</string>
<key>textureRotated</key> <key>textureRotated</key>
<false/> <false/>
</dict> </dict>
<key>tiliyiman.png</key>
<dict>
<key>aliases</key>
<array/>
<key>spriteOffset</key>
<string>{0,0}</string>
<key>spriteSize</key>
<string>{233,55}</string>
<key>spriteSourceSize</key>
<string>{233,55}</string>
<key>textureRect</key>
<string>{{699,1091},{233,55}}</string>
<key>textureRotated</key>
<true/>
</dict>
<key>tishi.png</key>
<dict>
<key>aliases</key>
<array/>
<key>spriteOffset</key>
<string>{0,0}</string>
<key>spriteSize</key>
<string>{777,42}</string>
<key>spriteSourceSize</key>
<string>{777,42}</string>
<key>textureRect</key>
<string>{{121,1},{777,42}}</string>
<key>textureRotated</key>
<true/>
</dict>
<key>touxiang.png</key>
<dict>
<key>aliases</key>
<array/>
<key>spriteOffset</key>
<string>{0,0}</string>
<key>spriteSize</key>
<string>{188,198}</string>
<key>spriteSourceSize</key>
<string>{188,198}</string>
<key>textureRect</key>
<string>{{1547,929},{188,198}}</string>
<key>textureRotated</key>
<true/>
</dict>
<key>try.png</key> <key>try.png</key>
<dict> <dict>
<key>aliases</key> <key>aliases</key>
@ -555,9 +840,9 @@
<key>spriteSourceSize</key> <key>spriteSourceSize</key>
<string>{636,174}</string> <string>{636,174}</string>
<key>textureRect</key> <key>textureRect</key>
<string>{{1,201},{636,174}}</string> <string>{{428,1},{636,174}}</string>
<key>textureRotated</key> <key>textureRotated</key>
<false/> <true/>
</dict> </dict>
<key>trya.png</key> <key>trya.png</key>
<dict> <dict>
@ -570,9 +855,9 @@
<key>spriteSourceSize</key> <key>spriteSourceSize</key>
<string>{144,164}</string> <string>{144,164}</string>
<key>textureRect</key> <key>textureRect</key>
<string>{{147,1261},{144,164}}</string> <string>{{917,659},{144,164}}</string>
<key>textureRotated</key> <key>textureRotated</key>
<false/> <true/>
</dict> </dict>
<key>ximie.png</key> <key>ximie.png</key>
<dict> <dict>
@ -585,9 +870,9 @@
<key>spriteSourceSize</key> <key>spriteSourceSize</key>
<string>{692,140}</string> <string>{692,140}</string>
<key>textureRect</key> <key>textureRect</key>
<string>{{1,59},{692,140}}</string> <string>{{1,805},{692,140}}</string>
<key>textureRotated</key> <key>textureRotated</key>
<false/> <true/>
</dict> </dict>
<key>xin.png</key> <key>xin.png</key>
<dict> <dict>
@ -600,7 +885,22 @@
<key>spriteSourceSize</key> <key>spriteSourceSize</key>
<string>{98,98}</string> <string>{98,98}</string>
<key>textureRect</key> <key>textureRect</key>
<string>{{773,1370},{94,90}}</string> <string>{{1137,1433},{94,90}}</string>
<key>textureRotated</key>
<false/>
</dict>
<key>xinsui.png</key>
<dict>
<key>aliases</key>
<array/>
<key>spriteOffset</key>
<string>{0,0}</string>
<key>spriteSize</key>
<string>{340,278}</string>
<key>spriteSourceSize</key>
<string>{340,340}</string>
<key>textureRect</key>
<string>{{1137,856},{340,278}}</string>
<key>textureRotated</key> <key>textureRotated</key>
<false/> <false/>
</dict> </dict>
@ -615,9 +915,9 @@
<key>spriteSourceSize</key> <key>spriteSourceSize</key>
<string>{289,72}</string> <string>{289,72}</string>
<key>textureRect</key> <key>textureRect</key>
<string>{{695,59},{289,72}}</string> <string>{{1233,1452},{289,72}}</string>
<key>textureRotated</key> <key>textureRotated</key>
<true/> <false/>
</dict> </dict>
<key>yiman.png</key> <key>yiman.png</key>
<dict> <dict>
@ -630,7 +930,7 @@
<key>spriteSourceSize</key> <key>spriteSourceSize</key>
<string>{72,36}</string> <string>{72,36}</string>
<key>textureRect</key> <key>textureRect</key>
<string>{{639,201},{72,36}}</string> <string>{{1704,1432},{72,36}}</string>
<key>textureRotated</key> <key>textureRotated</key>
<true/> <true/>
</dict> </dict>
@ -645,9 +945,9 @@
<key>spriteSourceSize</key> <key>spriteSourceSize</key>
<string>{311,116}</string> <string>{311,116}</string>
<key>textureRect</key> <key>textureRect</key>
<string>{{1,975},{311,116}}</string> <string>{{1609,1119},{311,116}}</string>
<key>textureRotated</key> <key>textureRotated</key>
<false/> <true/>
</dict> </dict>
<key>yinyue1.png</key> <key>yinyue1.png</key>
<dict> <dict>
@ -660,7 +960,22 @@
<key>spriteSourceSize</key> <key>spriteSourceSize</key>
<string>{311,100}</string> <string>{311,100}</string>
<key>textureRect</key> <key>textureRect</key>
<string>{{1,1093},{311,100}}</string> <string>{{604,628},{311,100}}</string>
<key>textureRotated</key>
<false/>
</dict>
<key>zhendong1.png</key>
<dict>
<key>aliases</key>
<array/>
<key>spriteOffset</key>
<string>{0,0}</string>
<key>spriteSize</key>
<string>{314,117}</string>
<key>spriteSourceSize</key>
<string>{314,117}</string>
<key>textureRect</key>
<string>{{604,509},{314,117}}</string>
<key>textureRotated</key> <key>textureRotated</key>
<false/> <false/>
</dict> </dict>
@ -676,9 +991,9 @@
<key>realTextureFileName</key> <key>realTextureFileName</key>
<string>gameui.png</string> <string>gameui.png</string>
<key>size</key> <key>size</key>
<string>{947,1736}</string> <string>{1746,1525}</string>
<key>smartupdate</key> <key>smartupdate</key>
<string>$TexturePacker:SmartUpdate:a457a515488a6d9b2f875f296b2db22f:972a9c490eaad265f00bab4f63f7fb8f:13103c15d0108e7aab1316a48f90f5be$</string> <string>$TexturePacker:SmartUpdate:31a00c57f7dde9d4c4a3e28698afca17:09db9f2297bb2b80fb08a73c8f4f60d2:13103c15d0108e7aab1316a48f90f5be$</string>
<key>textureFileName</key> <key>textureFileName</key>
<string>gameui.png</string> <string>gameui.png</string>
</dict> </dict>

File diff suppressed because it is too large Load Diff

Binary file not shown.

Before

Width:  |  Height:  |  Size: 182 KiB

After

Width:  |  Height:  |  Size: 1.1 MiB

View File

@ -8,8 +8,8 @@
"premultiplyAlpha": false, "premultiplyAlpha": false,
"genMipmaps": false, "genMipmaps": false,
"packable": true, "packable": true,
"width": 947, "width": 1746,
"height": 1736, "height": 1525,
"platformSettings": {}, "platformSettings": {},
"subMetas": {} "subMetas": {}
} }

BIN
assets/UI/UI/pop/gongxi.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 53 KiB

View File

@ -0,0 +1,38 @@
{
"ver": "2.3.7",
"uuid": "a8c14e1e-89f9-45f9-a8b1-03ff39ebd42b",
"importer": "texture",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 773,
"height": 180,
"platformSettings": {},
"subMetas": {
"gongxi": {
"ver": "1.0.6",
"uuid": "3cac0c04-c634-4a91-8e3f-75c231e2cafe",
"importer": "sprite-frame",
"rawTextureUuid": "a8c14e1e-89f9-45f9-a8b1-03ff39ebd42b",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 773,
"height": 180,
"rawWidth": 773,
"rawHeight": 180,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB

View File

@ -0,0 +1,38 @@
{
"ver": "2.3.7",
"uuid": "dc04885f-529c-4236-8529-f239c5bb719b",
"importer": "texture",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 747,
"height": 203,
"platformSettings": {},
"subMetas": {
"gongxiguoguan": {
"ver": "1.0.6",
"uuid": "863644c9-9beb-4e25-9c0f-acab9a62cfdd",
"importer": "sprite-frame",
"rawTextureUuid": "dc04885f-529c-4236-8529-f239c5bb719b",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 747,
"height": 203,
"rawWidth": 747,
"rawHeight": 203,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 256 KiB

View File

@ -0,0 +1,38 @@
{
"ver": "2.3.7",
"uuid": "9c20d1d1-3fef-4842-bca4-6f282ba6a6ee",
"importer": "texture",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 1080,
"height": 2340,
"platformSettings": {},
"subMetas": {
"体力效果01": {
"ver": "1.0.6",
"uuid": "9fc5138d-7d91-4862-af7b-7dbdeb95d534",
"importer": "sprite-frame",
"rawTextureUuid": "9c20d1d1-3fef-4842-bca4-6f282ba6a6ee",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 1080,
"height": 2340,
"rawWidth": 1080,
"rawHeight": 2340,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 272 KiB

View File

@ -0,0 +1,38 @@
{
"ver": "2.3.7",
"uuid": "f15e9253-f466-4753-b99a-4dd36c4f1b4c",
"importer": "texture",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 1080,
"height": 2340,
"platformSettings": {},
"subMetas": {
"体力效果02": {
"ver": "1.0.6",
"uuid": "7ad98132-8cd2-4d00-99a2-da132868a7b5",
"importer": "sprite-frame",
"rawTextureUuid": "f15e9253-f466-4753-b99a-4dd36c4f1b4c",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 1080,
"height": 2340,
"rawWidth": 1080,
"rawHeight": 2340,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 262 KiB

View File

@ -0,0 +1,38 @@
{
"ver": "2.3.7",
"uuid": "cafd940d-f2ee-4bb1-b19d-f71d73ba0ffe",
"importer": "texture",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 1080,
"height": 2340,
"platformSettings": {},
"subMetas": {
"体力效果03": {
"ver": "1.0.6",
"uuid": "d164a435-db80-48a1-b4c9-3ba2e6ef1ca7",
"importer": "sprite-frame",
"rawTextureUuid": "cafd940d-f2ee-4bb1-b19d-f71d73ba0ffe",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 1080,
"height": 2340,
"rawWidth": 1080,
"rawHeight": 2340,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}

13
assets/prefab/pop.meta Normal file
View File

@ -0,0 +1,13 @@
{
"ver": "1.1.3",
"uuid": "7ad68300-260e-4340-b535-0504ba952ead",
"importer": "folder",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {},
"subMetas": {}
}

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,9 @@
{
"ver": "1.3.2",
"uuid": "1cf82c85-a0c6-42f7-8a9d-e7ed164806d2",
"importer": "prefab",
"optimizationPolicy": "AUTO",
"asyncLoadAssets": false,
"readonly": false,
"subMetas": {}
}

View File

@ -1641,11 +1641,13 @@
}, },
{ {
"__type__": "cc.ClickEvent", "__type__": "cc.ClickEvent",
"target": null, "target": {
"__id__": 1
},
"component": "", "component": "",
"_componentId": "", "_componentId": "48bfeZuYFZE2qmgxbW2IigB",
"handler": "", "handler": "buyProduct",
"customEventData": "" "customEventData": "gold_pack_1"
}, },
{ {
"__type__": "de906iE/HVHpI6VO7IMvKaI", "__type__": "de906iE/HVHpI6VO7IMvKaI",
@ -2335,11 +2337,13 @@
}, },
{ {
"__type__": "cc.ClickEvent", "__type__": "cc.ClickEvent",
"target": null, "target": {
"__id__": 1
},
"component": "", "component": "",
"_componentId": "", "_componentId": "48bfeZuYFZE2qmgxbW2IigB",
"handler": "", "handler": "buyProduct",
"customEventData": "" "customEventData": "gold_pack_2"
}, },
{ {
"__type__": "de906iE/HVHpI6VO7IMvKaI", "__type__": "de906iE/HVHpI6VO7IMvKaI",
@ -3029,11 +3033,13 @@
}, },
{ {
"__type__": "cc.ClickEvent", "__type__": "cc.ClickEvent",
"target": null, "target": {
"__id__": 1
},
"component": "", "component": "",
"_componentId": "", "_componentId": "48bfeZuYFZE2qmgxbW2IigB",
"handler": "", "handler": "buyProduct",
"customEventData": "" "customEventData": "gold_pack_3"
}, },
{ {
"__type__": "de906iE/HVHpI6VO7IMvKaI", "__type__": "de906iE/HVHpI6VO7IMvKaI",
@ -3723,11 +3729,13 @@
}, },
{ {
"__type__": "cc.ClickEvent", "__type__": "cc.ClickEvent",
"target": null, "target": {
"__id__": 1
},
"component": "", "component": "",
"_componentId": "", "_componentId": "48bfeZuYFZE2qmgxbW2IigB",
"handler": "", "handler": "buyProduct",
"customEventData": "" "customEventData": "gold_pack_4"
}, },
{ {
"__type__": "de906iE/HVHpI6VO7IMvKaI", "__type__": "de906iE/HVHpI6VO7IMvKaI",
@ -4417,11 +4425,13 @@
}, },
{ {
"__type__": "cc.ClickEvent", "__type__": "cc.ClickEvent",
"target": null, "target": {
"__id__": 1
},
"component": "", "component": "",
"_componentId": "", "_componentId": "48bfeZuYFZE2qmgxbW2IigB",
"handler": "", "handler": "buyProduct",
"customEventData": "" "customEventData": "gold_pack_5"
}, },
{ {
"__type__": "de906iE/HVHpI6VO7IMvKaI", "__type__": "de906iE/HVHpI6VO7IMvKaI",
@ -5111,11 +5121,13 @@
}, },
{ {
"__type__": "cc.ClickEvent", "__type__": "cc.ClickEvent",
"target": null, "target": {
"__id__": 1
},
"component": "", "component": "",
"_componentId": "", "_componentId": "48bfeZuYFZE2qmgxbW2IigB",
"handler": "", "handler": "buyProduct",
"customEventData": "" "customEventData": "gold_pack_6"
}, },
{ {
"__type__": "de906iE/HVHpI6VO7IMvKaI", "__type__": "de906iE/HVHpI6VO7IMvKaI",

View File

@ -58,5 +58,10 @@ export default class NewClass extends cc.Component {
this.shop.destroy(); this.shop.destroy();
} }
//点击充值购买
buyProduct(event, customData) {
const productId = customData;
}
// update (dt) {} // update (dt) {}
} }