Commit 0bb5f1e2 authored by haiyoucuv's avatar haiyoucuv

init

parent aedc90c4
This diff is collapsed.
{
"ver": "1.2.0",
"importer": "directory",
"imported": true,
"uuid": "3cf54bd5-8c72-4fa8-998d-f13865e08b4e",
"files": [],
"subMetas": {},
"userData": {}
}
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "4e62a582-2e54-403a-a567-152d6483f135",
"files": [
".jpg",
".json"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "4e62a582-2e54-403a-a567-152d6483f135@6c48a",
"displayName": "city_vehicles_pallete",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "4e62a582-2e54-403a-a567-152d6483f135",
"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": "4e62a582-2e54-403a-a567-152d6483f135@f9941",
"displayName": "city_vehicles_pallete",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 256,
"height": 256,
"rawWidth": 256,
"rawHeight": 256,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-128,
-128,
0,
128,
-128,
0,
-128,
128,
0,
128,
128,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
256,
256,
256,
0,
0,
256,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-128,
-128,
0
],
"maxPos": [
128,
128,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "4e62a582-2e54-403a-a567-152d6483f135@6c48a",
"atlasUuid": "",
"trimType": "auto"
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": false,
"fixAlphaTransparencyArtifacts": false,
"redirect": "4e62a582-2e54-403a-a567-152d6483f135@6c48a"
}
}
{
"ver": "1.0.3",
"importer": "buffer",
"imported": true,
"uuid": "68919623-a608-4989-9c2c-6720376ee191",
"files": [
".bin",
".json"
],
"subMetas": {},
"userData": {}
}
This source diff could not be displayed because it is too large. You can view the blob instead.
{
"ver": "2.3.13",
"importer": "gltf",
"imported": true,
"uuid": "4b3d530f-e9e3-48fe-9b79-bd69e420b087",
"files": [
"__original-animation-0.cconb",
"__original-animation-1.cconb",
"__original-animation-2.cconb",
"__original-animation-3.cconb",
"__original-animation-4.cconb"
],
"subMetas": {
"30187": {
"importer": "gltf-animation",
"uuid": "4b3d530f-e9e3-48fe-9b79-bd69e420b087@30187",
"displayName": "",
"id": "30187",
"name": "idel_2.animation",
"userData": {
"gltfIndex": 1,
"wrapMode": 2,
"sample": 30,
"span": {
"from": 0,
"to": 1.25
},
"events": []
},
"ver": "1.0.17",
"imported": true,
"files": [
".cconb"
],
"subMetas": {}
},
"35330": {
"importer": "gltf-material",
"uuid": "4b3d530f-e9e3-48fe-9b79-bd69e420b087@35330",
"displayName": "",
"id": "35330",
"name": "ren_3_rig_2:lambert4.material",
"userData": {
"gltfIndex": 0
},
"ver": "1.0.14",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"15b10": {
"importer": "gltf-mesh",
"uuid": "4b3d530f-e9e3-48fe-9b79-bd69e420b087@15b10",
"displayName": "",
"id": "15b10",
"name": "ren_3_rig_2:girl_clothes.mesh",
"userData": {
"gltfIndex": 0,
"triangleCount": 2852
},
"ver": "1.1.1",
"imported": true,
"files": [
".bin",
".json"
],
"subMetas": {}
},
"3a0da": {
"importer": "gltf-mesh",
"uuid": "4b3d530f-e9e3-48fe-9b79-bd69e420b087@3a0da",
"displayName": "",
"id": "3a0da",
"name": "ren_3_rig_2:girl_color.mesh",
"userData": {
"gltfIndex": 1,
"triangleCount": 1250
},
"ver": "1.1.1",
"imported": true,
"files": [
".bin",
".json"
],
"subMetas": {}
},
"b56cb": {
"importer": "gltf-animation",
"uuid": "4b3d530f-e9e3-48fe-9b79-bd69e420b087@b56cb",
"displayName": "",
"id": "b56cb",
"name": "idel_1.animation",
"userData": {
"gltfIndex": 0,
"wrapMode": 2,
"sample": 30,
"span": {
"from": 0,
"to": 1.2083333730697632
},
"events": []
},
"ver": "1.0.17",
"imported": true,
"files": [
".cconb"
],
"subMetas": {}
},
"5f191": {
"importer": "gltf-animation",
"uuid": "4b3d530f-e9e3-48fe-9b79-bd69e420b087@5f191",
"displayName": "",
"id": "5f191",
"name": "idel_3.animation",
"userData": {
"gltfIndex": 2,
"wrapMode": 2,
"sample": 30,
"span": {
"from": 0,
"to": 2.4583332538604736
},
"events": []
},
"ver": "1.0.17",
"imported": true,
"files": [
".cconb"
],
"subMetas": {}
},
"cf5ee": {
"importer": "gltf-animation",
"uuid": "4b3d530f-e9e3-48fe-9b79-bd69e420b087@cf5ee",
"displayName": "",
"id": "cf5ee",
"name": "run.animation",
"userData": {
"gltfIndex": 3,
"wrapMode": 2,
"sample": 30,
"span": {
"from": 0,
"to": 1.25
},
"events": []
},
"ver": "1.0.17",
"imported": true,
"files": [
".cconb"
],
"subMetas": {}
},
"1e57b": {
"importer": "gltf-animation",
"uuid": "4b3d530f-e9e3-48fe-9b79-bd69e420b087@1e57b",
"displayName": "",
"id": "1e57b",
"name": "sit.animation",
"userData": {
"gltfIndex": 4,
"wrapMode": 2,
"sample": 30,
"span": {
"from": 0,
"to": 0.0416666679084301
},
"events": []
},
"ver": "1.0.17",
"imported": true,
"files": [
".cconb"
],
"subMetas": {}
},
"13eba": {
"importer": "gltf-skeleton",
"uuid": "4b3d530f-e9e3-48fe-9b79-bd69e420b087@13eba",
"displayName": "",
"id": "13eba",
"name": "skeleton #0.skeleton",
"userData": {
"gltfIndex": 0,
"jointsLength": 73
},
"ver": "1.0.1",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"00e76": {
"importer": "gltf-skeleton",
"uuid": "4b3d530f-e9e3-48fe-9b79-bd69e420b087@00e76",
"displayName": "",
"id": "00e76",
"name": "skeleton #0_1.skeleton",
"userData": {
"gltfIndex": 1,
"jointsLength": 73
},
"ver": "1.0.1",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"1d4f8": {
"importer": "texture",
"uuid": "4b3d530f-e9e3-48fe-9b79-bd69e420b087@1d4f8",
"displayName": "",
"id": "1d4f8",
"name": "city_vehicles_pallete.jpg.texture",
"userData": {
"wrapModeS": "repeat",
"wrapModeT": "repeat",
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "linear",
"anisotropy": 0,
"isUuid": false,
"imageUuidOrDatabaseUri": "db://assets/Bundles/MainGame/model/girl/city_vehicles_pallete.jpg"
},
"ver": "1.0.22",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"98cae": {
"importer": "gltf-material",
"uuid": "4b3d530f-e9e3-48fe-9b79-bd69e420b087@98cae",
"displayName": "",
"id": "98cae",
"name": "ren_3_rig_2:lambert2.material",
"userData": {
"gltfIndex": 1
},
"ver": "1.0.14",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"1adb6": {
"importer": "gltf-scene",
"uuid": "4b3d530f-e9e3-48fe-9b79-bd69e420b087@1adb6",
"displayName": "",
"id": "1adb6",
"name": "girl.prefab",
"userData": {
"gltfIndex": 0
},
"ver": "1.0.14",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"imageMetas": [
{
"uri": "db://assets/Bundles/MainGame/model/girl/city_vehicles_pallete.jpg"
}
],
"animationImportSettings": [
{
"name": "idel_1",
"duration": 1.2083333730697632,
"fps": 30,
"splits": [
{
"name": "idel_1",
"from": 0,
"to": 1.2083333730697632,
"wrapMode": 2,
"previousId": "b56cb"
}
]
},
{
"name": "idel_2",
"duration": 1.25,
"fps": 30,
"splits": [
{
"name": "idel_2",
"from": 0,
"to": 1.25,
"wrapMode": 2,
"previousId": "30187"
}
]
},
{
"name": "idel_3",
"duration": 2.4583332538604736,
"fps": 30,
"splits": [
{
"name": "idel_3",
"from": 0,
"to": 2.4583332538604736,
"wrapMode": 2,
"previousId": "5f191"
}
]
},
{
"name": "run",
"duration": 1.25,
"fps": 30,
"splits": [
{
"name": "run",
"from": 0,
"to": 1.25,
"wrapMode": 2,
"previousId": "cf5ee"
}
]
},
{
"name": "sit",
"duration": 0.0416666679084301,
"fps": 30,
"splits": [
{
"name": "sit",
"from": 0,
"to": 0.0416666679084301,
"wrapMode": 2,
"previousId": "1e57b"
}
]
}
],
"lods": {
"enable": false,
"hasBuiltinLOD": false,
"options": [
{
"screenRatio": 0.25,
"faceCount": 1
},
{
"screenRatio": 0.125,
"faceCount": 0.25
},
{
"screenRatio": 0.01,
"faceCount": 0.1
}
]
},
"assetFinder": {
"meshes": [
"4b3d530f-e9e3-48fe-9b79-bd69e420b087@15b10",
"4b3d530f-e9e3-48fe-9b79-bd69e420b087@3a0da"
],
"skeletons": [
"4b3d530f-e9e3-48fe-9b79-bd69e420b087@13eba",
"4b3d530f-e9e3-48fe-9b79-bd69e420b087@00e76"
],
"textures": [
"4b3d530f-e9e3-48fe-9b79-bd69e420b087@1d4f8"
],
"materials": [
"4b3d530f-e9e3-48fe-9b79-bd69e420b087@35330",
"4b3d530f-e9e3-48fe-9b79-bd69e420b087@98cae"
],
"scenes": [
"4b3d530f-e9e3-48fe-9b79-bd69e420b087@1adb6"
]
},
"promoteSingleRootNode": true,
"meshOptimize": {
"enable": true,
"vertexCache": true,
"vertexFetch": true,
"overdraw": true
},
"meshSimplify": {
"enable": true
}
}
}
This diff is collapsed.
{
"ver": "1.1.50",
"importer": "prefab",
"imported": true,
"uuid": "ebc6da8a-187a-469f-bfe2-1245b6f8d032",
"files": [
".json"
],
"subMetas": {},
"userData": {
"syncNodeName": "character_girl"
}
}
......@@ -27,7 +27,7 @@ const { ccclass, property } = _decorator;
@ccclass('RoleCarColorsSysterm')
export class RoleCarColorsSysterm extends Component {
// 对象池
rolePools: Map<string, { pool: NodePool, prefab: Prefab }> = new Map()
rolePools: Map<string, { pool: NodePool, prefab: Prefab[] }> = new Map()
activeRole: Map<string, Node> = new Map()
isGaming: boolean = false
......@@ -44,13 +44,27 @@ export class RoleCarColorsSysterm extends Component {
resolve(prefab);
})
})
const girlPrefab = await new Promise<Prefab>((resolve) => {
assetManager.getBundle("MainGame")
.load(`prefab/character_girl`, Prefab, (err, prefab: Prefab) => {
if (err) {
resolve(null);
return
}
resolve(prefab);
})
})
colors.forEach(color => {
const pool = new NodePool()
this.rolePools.set(color, { pool, prefab: rolePrefab })
for (let i = 10; i--;) {
const role = instantiate(rolePrefab)
this.rolePools.set(color, { pool, prefab: [rolePrefab, girlPrefab] })
for (let i = 5; i--;) {
const role = instantiate(rolePrefab);
role.getComponent(RoleCarColorsComponent).color = CarColors[color]
pool.put(role)
const gril = instantiate(girlPrefab);
gril.getComponent(RoleCarColorsComponent).color = CarColors[color]
pool.put(gril)
}
})
}
......@@ -235,7 +249,7 @@ export class RoleCarColorsSysterm extends Component {
if (poolItem.pool.size() > 0) {
return poolItem.pool.get()
}
const role = instantiate(poolItem.prefab)
const role = instantiate(poolItem.prefab[randomRangeInt(0, poolItem.prefab.length)])
role.getComponent(RoleCarColorsComponent).color = color
return role
}
......
......@@ -31,13 +31,14 @@ class ShareStore {
const { title, content, thumbnail } = store.frontVariable?.shareInfo || {};
const actLink = location.origin + location.pathname + `?appID=${getUrlParams("appID")}`;
// @ts-ignore
const link = location.origin + window.CFG.loginMidUrl + encodeURIComponent(actLink);
const param = {
data: {
title, // 标题
desc: content, // 描述
imgUrl: thumbnail, // 图片
link: actLink // 链接
link // 链接
}
}
console.log("postMessage参数", param);
......
......@@ -109,6 +109,20 @@
<!-- <script src="//yun-duiba-credits-test.duibatest.com.cn/TNGD_GAMES/libs/eruda.min.js"></script>-->
<!-- <script>eruda.init()</script>-->
<script>
var CFG = CFG || {};
// 免登中间页id
CFG.loginMidId = "Did1NjAwMDc"; // 线上正式
if (location.href.indexOf("duibatest") > -1) {
CFG.loginMidId = "Did1MTM2NTU"; // 测试
} else if (CFG.projectId == 'p69bb35bf') { // TODO 线上测试id
CFG.loginMidId = "Did1NTk5OTk"; // 线上测试
}
// 免登中间页
CFG.loginMidUrl = "/customShare/share?id=" + CFG.loginMidId + "&source=duiba&projectId=" + CFG.projectId + "&redirectUrl=";
</script>
</head>
<body style="overflow: hidden;">
<div id="GameDiv" cc_exact_fit_screen="true" style="overflow: hidden;">
......
......@@ -17,6 +17,9 @@
<link rel="stylesheet" type="text/css" href="./index.css" />
<link rel="stylesheet" type="text/css" href="./custom.css" />
<script src="//res.wx.qq.com/open/js/jweixin-1.6.0.js"></script>
<script>
var CFG = CFG || {};
</script>
</head>
<body style="overflow: hidden;">
<%- include(cocosToolBar, {config: config}) %>
......
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