Commit 73142c1e authored by haiyoucuv's avatar haiyoucuv

init

parent 3adf7b45
This diff is collapsed.
{
"ver": "1.2.0",
"importer": "directory",
"imported": true,
"uuid": "4055f717-70d1-4f32-ad68-268672596eb8",
"files": [],
"subMetas": {},
"userData": {}
}
{
"ver": "1.2.0",
"importer": "directory",
"imported": true,
"uuid": "21b344bf-efec-4515-9cf3-783d680258c5",
"files": [],
"subMetas": {},
"userData": {}
}
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "04c4c3c6-c6a2-4ffb-98af-169280fb26f6",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "04c4c3c6-c6a2-4ffb-98af-169280fb26f6@6c48a",
"displayName": "卡A",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "04c4c3c6-c6a2-4ffb-98af-169280fb26f6",
"isUuid": true,
"visible": false,
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"anisotropy": 0
},
"ver": "1.0.22",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"f9941": {
"importer": "sprite-frame",
"uuid": "04c4c3c6-c6a2-4ffb-98af-169280fb26f6@f9941",
"displayName": "卡A",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 32,
"height": 42,
"rawWidth": 32,
"rawHeight": 42,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-16,
-21,
0,
16,
-21,
0,
-16,
21,
0,
16,
21,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
42,
32,
42,
0,
0,
32,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-16,
-21,
0
],
"maxPos": [
16,
21,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "04c4c3c6-c6a2-4ffb-98af-169280fb26f6@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "04c4c3c6-c6a2-4ffb-98af-169280fb26f6@6c48a"
}
}
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "e37fb195-9aa5-43ba-9720-93366607f675",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "e37fb195-9aa5-43ba-9720-93366607f675@6c48a",
"displayName": "卡B",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "e37fb195-9aa5-43ba-9720-93366607f675",
"isUuid": true,
"visible": false,
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"anisotropy": 0
},
"ver": "1.0.22",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"f9941": {
"importer": "sprite-frame",
"uuid": "e37fb195-9aa5-43ba-9720-93366607f675@f9941",
"displayName": "卡B",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 32,
"height": 42,
"rawWidth": 32,
"rawHeight": 42,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-16,
-21,
0,
16,
-21,
0,
-16,
21,
0,
16,
21,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
42,
32,
42,
0,
0,
32,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-16,
-21,
0
],
"maxPos": [
16,
21,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "e37fb195-9aa5-43ba-9720-93366607f675@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "e37fb195-9aa5-43ba-9720-93366607f675@6c48a"
}
}
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "af6adb06-7b7a-4c99-9a3a-93f00d63e5c7",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "af6adb06-7b7a-4c99-9a3a-93f00d63e5c7@6c48a",
"displayName": "卡C",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "af6adb06-7b7a-4c99-9a3a-93f00d63e5c7",
"isUuid": true,
"visible": false,
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"anisotropy": 0
},
"ver": "1.0.22",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"f9941": {
"importer": "sprite-frame",
"uuid": "af6adb06-7b7a-4c99-9a3a-93f00d63e5c7@f9941",
"displayName": "卡C",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 32,
"height": 42,
"rawWidth": 32,
"rawHeight": 42,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-16,
-21,
0,
16,
-21,
0,
-16,
21,
0,
16,
21,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
42,
32,
42,
0,
0,
32,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-16,
-21,
0
],
"maxPos": [
16,
21,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "af6adb06-7b7a-4c99-9a3a-93f00d63e5c7@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "af6adb06-7b7a-4c99-9a3a-93f00d63e5c7@6c48a"
}
}
...@@ -26,7 +26,13 @@ const aiNick = [ ...@@ -26,7 +26,13 @@ const aiNick = [
"蹲街守寂寞", "蹲街守寂寞",
"暮凉", "暮凉",
"还有醋v", "还有醋v",
"Goa'uld",
"奋斗的吗喽", "奋斗的吗喽",
"国服最强人类",
"万年老二",
"向右向前看",
"向佐",
"高端玩家虐菜",
"甜崽", "甜崽",
"寄居人", "寄居人",
"書冩時光", "書冩時光",
......
...@@ -23,8 +23,26 @@ export class PropBtn extends Component { ...@@ -23,8 +23,26 @@ export class PropBtn extends Component {
this.cdMask = cd.getChildByName("mask").getComponent(Graphics); this.cdMask = cd.getChildByName("mask").getComponent(Graphics);
this.cdTxt = cd.getChildByName("num").getComponent(Label); this.cdTxt = cd.getChildByName("num").getComponent(Label);
this.startCd(5); this.cdTxt.node.active = false;
this.drawProcess(0.4); this.cdMask.node.active = false;
// this.startCd(5);
// this.drawProcess(0.4);
this.node.on(Node.EventType.TOUCH_START, this.use, this);
}
doUse() {
}
private use() {
if (this.cd) {
return;
}
this.doUse();
} }
drawProcess(process: number) { drawProcess(process: number) {
...@@ -50,7 +68,8 @@ export class PropBtn extends Component { ...@@ -50,7 +68,8 @@ export class PropBtn extends Component {
.to(cd, { cd: 0 }, { .to(cd, { cd: 0 }, {
onUpdate: (target: PropBtn, ratio: number) => { onUpdate: (target: PropBtn, ratio: number) => {
this.drawProcess(1 - ratio); this.drawProcess(1 - ratio);
this.cdTxt.string = `${this.cd.toFixed(1)}s`; const cdStr = this.cd < 10 ? this.cd.toFixed(1) : Math.ceil(this.cd);
this.cdTxt.string = `${cdStr}s`;
}, },
onComplete: () => { onComplete: () => {
this.cdTxt.node.active = false; this.cdTxt.node.active = false;
......
{
"ver": "1.2.0",
"importer": "directory",
"imported": true,
"uuid": "373b4007-b199-4437-abdc-428a2d4fe291",
"files": [],
"subMetas": {},
"userData": {}
}
import { _decorator, Component, Node } from 'cc';
import { PropBtn } from "../Components/PropBtn";
const { ccclass, property } = _decorator;
@ccclass('SpeedPropBtn')
export class SpeedPropBtn extends PropBtn {
start() {
}
doUse() {
super.doUse();
this.startCd(15);
}
}
{
"ver": "4.0.24",
"importer": "typescript",
"imported": true,
"uuid": "c41eb2e6-9ed7-43a3-9f67-0a1826ec5c74",
"files": [],
"subMetas": {},
"userData": {}
}
import { _decorator } from "cc"; import { _decorator } from "cc";
import { foodPool } from "../Manager/CommonPool"; import { foodPool } from "db://assets/Scripts/Scenes/MainGame/Manager/CommonPool";
import { PropBase } from "./PropBase"; import { PropBase } from "./PropBase";
import { Snake } from "../Snake"; import { Snake } from "db://assets/Scripts/Scenes/MainGame/Snake";
const { ccclass, property } = _decorator; const { ccclass, property } = _decorator;
......
import { _decorator } from "cc"; import { _decorator } from "cc";
import { PropBase } from "./PropBase"; import { PropBase } from "./PropBase";
import { Snake } from "../Snake"; import { Snake } from "db://assets/Scripts/Scenes/MainGame/Snake";
import { LuckyBagManager } from "../Manager/LuckyBagManager"; import { LuckyBagManager } from "db://assets/Scripts/Scenes/MainGame/Manager/LuckyBagManager";
const { ccclass, property } = _decorator; const { ccclass, property } = _decorator;
......
import { _decorator, Component } from "cc"; import { _decorator, Component } from "cc";
import { Snake } from "../Snake"; import { Snake } from "db://assets/Scripts/Scenes/MainGame/Snake";
const { ccclass, property } = _decorator; const { ccclass, property } = _decorator;
......
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