Commit 807e2ac9 authored by Tt's avatar Tt

资源替代

parent eaeb36f1
......@@ -32,8 +32,6 @@ export default class NewClass extends cc.Component {
private initEvent() {
pg.event.on("show_round_action", () => {
this.countDown = Game.getIns().getCurrentPage().duration;
cc.find("bg_cd_red", this.node).active = false;
cc.find("bg_cd/label_cd", this.node).getComponent(cc.Label).string = "" + parseInt("" + this.countDown);
this.showRound();
});
pg.event.on("game_start", () => {
......@@ -90,7 +88,6 @@ export default class NewClass extends cc.Component {
stop = true;
})
}
private lastCount: number;
update(dt) {
if (Game.getIns().title) {
cc.find("bg_title/title", this.node).getComponent(cc.Label).string = Game.getIns().title;
......@@ -102,23 +99,6 @@ export default class NewClass extends cc.Component {
pg.event.emit("game_time_over");
return;
}
this.countDown = this.countDown - dt;
if (this.countDown < 6) {
let count = Math.floor(this.countDown);
if (count != this.lastCount) {
this.lastCount = count;
if (this.lastCount == 1) {
pg.audio.playLocalAudio(cc.find("bg_cd_red/audio_cd1", this.node))
} else if (this.lastCount > 1) {
pg.audio.playLocalAudio(cc.find("bg_cd_red/audio_cd", this.node))
}
}
cc.find("bg_cd_red", this.node).active = true;
cc.find("bg_cd_red/label_cd", this.node).getComponent(cc.Label).string = "" + parseInt("" + this.countDown);
} else {
cc.find("bg_cd_red", this.node).active = false;
cc.find("bg_cd/label_cd", this.node).getComponent(cc.Label).string = "" + parseInt("" + this.countDown);
}
}
}
......
This diff is collapsed.
......@@ -47,7 +47,6 @@ export default class SceneComponent extends MyCocosSceneComponent {
this.layout_start = pg.view.find(this, "layout_start");
let desc = pg.view.find(this.layout_start, 'desc');
pg.view.setString(desc, Game.getIns().question.text)
pg.view.setString(pg.view.find(this, 'layout_info/bg_cd/label_cd'), 0);
this.layout_start.active = true;
this.audioId = await pg.audio.playAudioByUrl(Game.getIns().question.audio);
......
{
"ver": "2.3.5",
"uuid": "015bf9e2-7f3d-47a0-82bd-ddd829932536",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 1334,
"height": 750,
"platformSettings": {},
"subMetas": {
"view": {
"ver": "1.0.4",
"uuid": "4b0b5b7a-d3af-4dea-a56d-b57c558babe8",
"rawTextureUuid": "015bf9e2-7f3d-47a0-82bd-ddd829932536",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 1334,
"height": 750,
"rawWidth": 1334,
"rawHeight": 750,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "1.1.2",
"uuid": "ceb24a13-6fa1-49f6-8894-795b5c3154ba",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {},
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "4aa85e4a-0efa-444b-9c0c-488fe1a99ec1",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 515,
"height": 333,
"platformSettings": {},
"subMetas": {
"bg_card-cover": {
"ver": "1.0.4",
"uuid": "f1947369-c896-4644-8f87-f341b411dd51",
"rawTextureUuid": "4aa85e4a-0efa-444b-9c0c-488fe1a99ec1",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0.5,
"trimX": 1,
"trimY": 1,
"width": 513,
"height": 330,
"rawWidth": 515,
"rawHeight": 333,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "3653ee70-8e03-4e00-8fb9-0cd6c9d23efd",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 174,
"height": 121,
"platformSettings": {},
"subMetas": {
"bg_card-small": {
"ver": "1.0.4",
"uuid": "e1bfd018-ddfd-40df-83ac-b6b5e2d426ca",
"rawTextureUuid": "3653ee70-8e03-4e00-8fb9-0cd6c9d23efd",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 3,
"width": 174,
"height": 115,
"rawWidth": 174,
"rawHeight": 121,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "764b9e20-3936-4829-a2c9-836e060ba78c",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 515,
"height": 333,
"platformSettings": {},
"subMetas": {
"bg_card": {
"ver": "1.0.4",
"uuid": "d16623ec-6860-44df-b8f1-39da5d8f21c9",
"rawTextureUuid": "764b9e20-3936-4829-a2c9-836e060ba78c",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0.5,
"trimX": 1,
"trimY": 1,
"width": 513,
"height": 330,
"rawWidth": 515,
"rawHeight": 333,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "9701480a-5377-48cf-8a73-78abb09bf866",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 862,
"height": 370,
"platformSettings": {},
"subMetas": {
"bg_di": {
"ver": "1.0.4",
"uuid": "ba623a38-5eb1-4416-98e2-bd3f2c7f6b94",
"rawTextureUuid": "9701480a-5377-48cf-8a73-78abb09bf866",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 862,
"height": 370,
"rawWidth": 862,
"rawHeight": 370,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "ae046b49-db21-441c-ae71-4a0c189db86c",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 245,
"height": 106,
"platformSettings": {},
"subMetas": {
"bg_hole-front": {
"ver": "1.0.4",
"uuid": "51bff5dc-a570-49cb-aa77-ee87a6a41c82",
"rawTextureUuid": "ae046b49-db21-441c-ae71-4a0c189db86c",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": -10.5,
"trimX": 0,
"trimY": 22,
"width": 245,
"height": 83,
"rawWidth": 245,
"rawHeight": 106,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "7a1d1396-b269-460c-8438-4650c60f4748",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 245,
"height": 106,
"platformSettings": {},
"subMetas": {
"bg_hole": {
"ver": "1.0.4",
"uuid": "4c9e0159-0052-4bcf-92b4-6f0ea1132102",
"rawTextureUuid": "7a1d1396-b269-460c-8438-4650c60f4748",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 245,
"height": 106,
"rawWidth": 245,
"rawHeight": 106,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "0008f670-6a07-4f87-b010-a52528df1462",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 180,
"height": 244,
"platformSettings": {},
"subMetas": {
"bg_mouse-right": {
"ver": "1.0.4",
"uuid": "f118f8e7-af30-44c1-9901-f825af21a4b8",
"rawTextureUuid": "0008f670-6a07-4f87-b010-a52528df1462",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 180,
"height": 244,
"rawWidth": 180,
"rawHeight": 244,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "a21df088-2cda-4303-a5e6-dbe5c0d6193c",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 180,
"height": 244,
"platformSettings": {},
"subMetas": {
"bg_mouse-wrong": {
"ver": "1.0.4",
"uuid": "c7700c7d-43ca-452a-b26a-c173996ec850",
"rawTextureUuid": "a21df088-2cda-4303-a5e6-dbe5c0d6193c",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": -0.5,
"offsetY": -11.5,
"trimX": 0,
"trimY": 23,
"width": 179,
"height": 221,
"rawWidth": 180,
"rawHeight": 244,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "4781475b-1f7a-432d-9b46-8b47b6dbf885",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 180,
"height": 244,
"platformSettings": {},
"subMetas": {
"bg_mouse": {
"ver": "1.0.4",
"uuid": "1152b6c5-0cbc-4eb9-9368-a6278d3e5f9b",
"rawTextureUuid": "4781475b-1f7a-432d-9b46-8b47b6dbf885",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": -0.5,
"offsetY": -11.5,
"trimX": 0,
"trimY": 23,
"width": 179,
"height": 221,
"rawWidth": 180,
"rawHeight": 244,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "6bccd5cc-1f4e-4db4-9817-ac342e0a7394",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 312,
"height": 115,
"platformSettings": {},
"subMetas": {
"bg_title": {
"ver": "1.0.4",
"uuid": "86fe8119-4f5b-4097-97c3-dc787289bb82",
"rawTextureUuid": "6bccd5cc-1f4e-4db4-9817-ac342e0a7394",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 312,
"height": 115,
"rawWidth": 312,
"rawHeight": 115,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "73ccb4b8-d97f-4ea7-81fb-dfb304ad53ae",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 1334,
"height": 441,
"platformSettings": {},
"subMetas": {
"bg_vs": {
"ver": "1.0.4",
"uuid": "8268c4c0-0981-4287-8614-a64bb23497a8",
"rawTextureUuid": "73ccb4b8-d97f-4ea7-81fb-dfb304ad53ae",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 1334,
"height": 441,
"rawWidth": 1334,
"rawHeight": 441,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "d89511df-b7c2-4f62-908b-e97ab99569be",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 130,
"height": 109,
"platformSettings": {},
"subMetas": {
"btn_laba": {
"ver": "1.0.4",
"uuid": "07ea5772-1e74-4f70-a44a-4a0a9ceed83c",
"rawTextureUuid": "d89511df-b7c2-4f62-908b-e97ab99569be",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 130,
"height": 109,
"rawWidth": 130,
"rawHeight": 109,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "a8db2fb1-3591-466b-87f8-e4769cebb341",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 130,
"height": 109,
"platformSettings": {},
"subMetas": {
"btn_laba2": {
"ver": "1.0.4",
"uuid": "a2e3bab6-4452-4b80-93ca-55b458ae331d",
"rawTextureUuid": "a8db2fb1-3591-466b-87f8-e4769cebb341",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": -12.5,
"offsetY": 10,
"trimX": 48,
"trimY": 31,
"width": 9,
"height": 27,
"rawWidth": 130,
"rawHeight": 109,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "e888a4df-e226-4507-a132-72c4cff5dd4d",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 130,
"height": 109,
"platformSettings": {},
"subMetas": {
"btn_laba3": {
"ver": "1.0.4",
"uuid": "a6fff801-b74b-40dc-b60e-b1a907cef065",
"rawTextureUuid": "e888a4df-e226-4507-a132-72c4cff5dd4d",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": -20,
"offsetY": 11,
"trimX": 33,
"trimY": 27,
"width": 24,
"height": 33,
"rawWidth": 130,
"rawHeight": 109,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "a1a78990-9ed2-40a7-b0e7-fd092d049e85",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 92,
"height": 92,
"platformSettings": {},
"subMetas": {
"btn_music-off": {
"ver": "1.0.4",
"uuid": "048ffa59-1b61-4d6d-b6eb-477e924ed65c",
"rawTextureUuid": "a1a78990-9ed2-40a7-b0e7-fd092d049e85",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 92,
"height": 92,
"rawWidth": 92,
"rawHeight": 92,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "e2fda3e3-29ae-4a89-88df-288a00aba0f9",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 92,
"height": 92,
"platformSettings": {},
"subMetas": {
"btn_music-on": {
"ver": "1.0.4",
"uuid": "7e3dddca-a078-4521-a0e3-0d071756833a",
"rawTextureUuid": "e2fda3e3-29ae-4a89-88df-288a00aba0f9",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 92,
"height": 92,
"rawWidth": 92,
"rawHeight": 92,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "65e66dcf-17c2-4e47-859c-927c0168b1d7",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 332,
"height": 118,
"platformSettings": {},
"subMetas": {
"btn_start": {
"ver": "1.0.4",
"uuid": "52d822eb-398f-4fc1-9380-e9bc275cef54",
"rawTextureUuid": "65e66dcf-17c2-4e47-859c-927c0168b1d7",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 332,
"height": 118,
"rawWidth": 332,
"rawHeight": 118,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
{
"ver": "1.1.2",
"uuid": "f5ebcd76-cf30-4af6-bc1b-4f61edc5527e",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {},
"subMetas": {}
}
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
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