diff --git a/hurt/.creator/asset-template/typescript/Custom Script Template Help Documentation.url b/hurt/.creator/asset-template/typescript/Custom Script Template Help Documentation.url new file mode 100644 index 0000000..7606df0 --- /dev/null +++ b/hurt/.creator/asset-template/typescript/Custom Script Template Help Documentation.url @@ -0,0 +1,2 @@ +[InternetShortcut] +URL=https://docs.cocos.com/creator/manual/en/scripting/setup.html#custom-script-template \ No newline at end of file diff --git a/hurt/.creator/default-meta.json b/hurt/.creator/default-meta.json new file mode 100644 index 0000000..abb1239 --- /dev/null +++ b/hurt/.creator/default-meta.json @@ -0,0 +1,5 @@ +{ + "image": { + "type": "sprite-frame" + } +} diff --git a/hurt/.gitignore b/hurt/.gitignore new file mode 100644 index 0000000..3ae6c20 --- /dev/null +++ b/hurt/.gitignore @@ -0,0 +1,24 @@ + +#/////////////////////////// +# Cocos Creator 3D Project +#/////////////////////////// +library/ +temp/ +local/ +# build/ +profiles/ +native +#////////////////////////// +# NPM +#////////////////////////// +node_modules/ + +#////////////////////////// +# VSCode +#////////////////////////// +.vscode/ + +#////////////////////////// +# WebStorm +#////////////////////////// +.idea/ diff --git a/hurt/README.md b/hurt/README.md index d80d07f..6a5553d 100644 --- a/hurt/README.md +++ b/hurt/README.md @@ -1,2 +1,4 @@ # hurt Theo trend phim Thắp sáng anh, sưởi ấm em. Nhưng mà nó hơi lạ :v + +Project được tạo với [Cocos Creator](https://www.cocos.com/en/creator) v3.6 diff --git a/hurt/assets/BasePartical.ts b/hurt/assets/BasePartical.ts new file mode 100644 index 0000000..237d30b --- /dev/null +++ b/hurt/assets/BasePartical.ts @@ -0,0 +1,20 @@ +import {_decorator, Component, Node, Tween, tween, Vec3} from 'cc'; + +const {ccclass, property} = _decorator; + +@ccclass('BasePartical') +export class BasePartical extends Component { + time: number = 0; + + start() { + } + + calcPosAt(time: number): Vec3 { + return new Vec3(0, 0, 0); + } + + update(deltaTime: number) { + this.time += deltaTime; + this.node.position = this.calcPosAt(this.time); + } +} diff --git a/hurt/assets/BasePartical.ts.meta b/hurt/assets/BasePartical.ts.meta new file mode 100644 index 0000000..318b85c --- /dev/null +++ b/hurt/assets/BasePartical.ts.meta @@ -0,0 +1,9 @@ +{ + "ver": "4.0.23", + "importer": "typescript", + "imported": true, + "uuid": "a78fab70-8c68-4a3e-8119-7265beb7555b", + "files": [], + "subMetas": {}, + "userData": {} +} diff --git a/hurt/assets/Heart.ts b/hurt/assets/Heart.ts new file mode 100644 index 0000000..de80f33 --- /dev/null +++ b/hurt/assets/Heart.ts @@ -0,0 +1,24 @@ +import {_decorator, Component, Node, Tween, tween, Vec3} from 'cc'; +import {BasePartical} from "db://assets/BasePartical"; + +const {ccclass, property} = _decorator; + +@ccclass('Heart') +export class Heart extends BasePartical { + size: number = 12; + speed: number = 12; + + start() { + console.log("Không biết lập trình web, chỉ biết lập trình game") + console.log("Không thể yêu ai khác, bởi đã trót yêu em"); + console.log("T <3 V"); + console.log("Source: https://github.com/tiennm99/hurt/"); + } + + calcPosAt(time: number): Vec3 { + let t = time * this.speed; + let x = 16 * Math.pow(Math.sin(t), 3); + let y = 13 * Math.cos(t) - 5 * Math.cos(2 * t) - 2 * Math.cos(3 * t) - Math.cos(4 * t); + return new Vec3(x * this.size, y * this.size, 0); + } +} diff --git a/hurt/assets/Heart.ts.meta b/hurt/assets/Heart.ts.meta new file mode 100644 index 0000000..072b23d --- /dev/null +++ b/hurt/assets/Heart.ts.meta @@ -0,0 +1,9 @@ +{ + "ver": "4.0.23", + "importer": "typescript", + "imported": true, + "uuid": "ae2d8892-935f-4cbb-8a90-c0be643ada9c", + "files": [], + "subMetas": {}, + "userData": {} +} diff --git a/hurt/assets/Split.ts b/hurt/assets/Split.ts new file mode 100644 index 0000000..14e29b5 --- /dev/null +++ b/hurt/assets/Split.ts @@ -0,0 +1,40 @@ +import {_decorator, Component, Node, Tween, tween, Vec3} from 'cc'; +import {BasePartical} from "db://assets/BasePartical"; + +const {ccclass, property} = _decorator; + +@ccclass('Split') +export class Split extends BasePartical { + size: number = 70; + speed: number = 6; + + deltaX: number = 0; + deltaY: number = -30; + + calcPosAt(time: number): Vec3 { + let t = time * this.speed; + let a = t % 5; + let x, y; + if (a < 1) { + x = -a / 2; + y = 2 - a; + } else if (a < 2) { + a -= 1; + x = -1 / 2 + a; + y = 1; + } else if (a < 3) { + a -= 2; + x = 1 / 2 - a; + y = 1 - 2 * a; + } else if (a < 4) { + a -= 3; + x = -1 / 2 + a; + y = -1; + } else { + a -= 4; + x = (1 - a) / 2; + y = -1 - a; + } + return new Vec3(x * this.size + this.deltaX, y * this.size + this.deltaY, 0); + } +} diff --git a/hurt/assets/Split.ts.meta b/hurt/assets/Split.ts.meta new file mode 100644 index 0000000..79bdcd2 --- /dev/null +++ b/hurt/assets/Split.ts.meta @@ -0,0 +1,9 @@ +{ + "ver": "4.0.23", + "importer": "typescript", + "imported": true, + "uuid": "ad47dd02-5568-4925-b11d-56173fe5b2a3", + "files": [], + "subMetas": {}, + "userData": {} +} diff --git a/hurt/assets/T.ts b/hurt/assets/T.ts new file mode 100644 index 0000000..c27c86c --- /dev/null +++ b/hurt/assets/T.ts @@ -0,0 +1,30 @@ +import {_decorator, Component, Node, Tween, tween, Vec3} from 'cc'; +import {BasePartical} from "db://assets/BasePartical"; + +const {ccclass, property} = _decorator; + +@ccclass('T') +export class T extends BasePartical { + size: number = 100; + speed: number = 12; + horizontalWeight: number = 1; //Tỉ lệ chiều ngang chữ T + verticalWeight: number = 1; //Tỉ lệ chiều dọc chữ T + verticalOrigin: number = 1; //Mốc thanh ngang T + deltaX: number = -100; + deltaY: number = -10; + + calcPosAt(time: number): Vec3 { + let t = time * this.speed; + let a = t % (this.horizontalWeight + this.verticalWeight); + let isStep1 = a < this.horizontalWeight; + let x, y; + if (isStep1) { + x = a - this.horizontalWeight / 2; + y = this.verticalOrigin; + } else { + x = 0; + y = this.verticalOrigin - (a - this.horizontalWeight); + } + return new Vec3(x * this.size + this.deltaX, y * this.size + this.deltaY, 0); + } +} diff --git a/hurt/assets/T.ts.meta b/hurt/assets/T.ts.meta new file mode 100644 index 0000000..5075776 --- /dev/null +++ b/hurt/assets/T.ts.meta @@ -0,0 +1,9 @@ +{ + "ver": "4.0.23", + "importer": "typescript", + "imported": true, + "uuid": "3e0d2b9f-fd3c-48a4-a25e-161139408c6b", + "files": [], + "subMetas": {}, + "userData": {} +} diff --git a/hurt/assets/V.ts b/hurt/assets/V.ts new file mode 100644 index 0000000..eb08d45 --- /dev/null +++ b/hurt/assets/V.ts @@ -0,0 +1,24 @@ +import {_decorator, Component, Node, Tween, tween, Vec3} from 'cc'; +import {BasePartical} from "db://assets/BasePartical"; + +const {ccclass, property} = _decorator; + +@ccclass('V') +export class V extends BasePartical { + size: number = 60; + speed: number = 12; + alphaInDegree: number = 60; //Góc chữ V + + alpha = this.alphaInDegree / 2 * Math.PI / 180; //Góc ở radian + deltaX: number = 100; + deltaY: number = -10; + + calcPosAt(time: number): Vec3 { + let t = time * this.speed; + let a = t % 2; + let x = Math.abs(a - 1); + let y = x / Math.tan(this.alpha); + if (a < 1) x *= -1; + return new Vec3(x * this.size + this.deltaX, y * this.size + this.deltaY, 0); + } +} diff --git a/hurt/assets/V.ts.meta b/hurt/assets/V.ts.meta new file mode 100644 index 0000000..3c25697 --- /dev/null +++ b/hurt/assets/V.ts.meta @@ -0,0 +1,9 @@ +{ + "ver": "4.0.23", + "importer": "typescript", + "imported": true, + "uuid": "6eb3308e-e75c-40e0-b514-b763e184eff3", + "files": [], + "subMetas": {}, + "userData": {} +} diff --git a/hurt/assets/scene.scene b/hurt/assets/scene.scene new file mode 100644 index 0000000..06a3bbf --- /dev/null +++ b/hurt/assets/scene.scene @@ -0,0 +1,1140 @@ +[ + { + "__type__": "cc.SceneAsset", + "_name": "", + "_objFlags": 0, + "_native": "", + "scene": { + "__id__": 1 + } + }, + { + "__type__": "cc.Scene", + "_name": "scene-2d", + "_objFlags": 0, + "_parent": null, + "_children": [ + { + "__id__": 2 + } + ], + "_active": true, + "_components": [], + "_prefab": null, + "autoReleaseAssets": false, + "_globals": { + "__id__": 24 + }, + "_id": "c77ecaa8-c936-46c4-a5b0-98692673ed87" + }, + { + "__type__": "cc.Node", + "_name": "Canvas", + "_objFlags": 0, + "_parent": { + "__id__": 1 + }, + "_children": [ + { + "__id__": 3 + }, + { + "__id__": 5 + }, + { + "__id__": 9 + }, + { + "__id__": 13 + }, + { + "__id__": 17 + } + ], + "_active": true, + "_components": [ + { + "__id__": 21 + }, + { + "__id__": 22 + }, + { + "__id__": 23 + } + ], + "_prefab": null, + "_lpos": { + "__type__": "cc.Vec3", + "x": 480, + "y": 320.00000000000006, + "z": 0 + }, + "_lrot": { + "__type__": "cc.Quat", + "x": 0, + "y": 0, + "z": 0, + "w": 1 + }, + "_lscale": { + "__type__": "cc.Vec3", + "x": 1, + "y": 1, + "z": 1 + }, + "_layer": 33554432, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "beI88Z2HpFELqR4T5EMHpg" + }, + { + "__type__": "cc.Node", + "_name": "Camera", + "_objFlags": 0, + "_parent": { + "__id__": 2 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 4 + } + ], + "_prefab": null, + "_lpos": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 1000 + }, + "_lrot": { + "__type__": "cc.Quat", + "x": 0, + "y": 0, + "z": 0, + "w": 1 + }, + "_lscale": { + "__type__": "cc.Vec3", + "x": 1, + "y": 1, + "z": 1 + }, + "_layer": 1073741824, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "ebFwiq8gBFaYpqYbdoDODe" + }, + { + "__type__": "cc.Camera", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 3 + }, + "_enabled": true, + "__prefab": null, + "_projection": 0, + "_priority": 1073741824, + "_fov": 45, + "_fovAxis": 0, + "_orthoHeight": 329.38967136150234, + "_near": 0, + "_far": 2000, + "_color": { + "__type__": "cc.Color", + "r": 0, + "g": 0, + "b": 0, + "a": 255 + }, + "_depth": 1, + "_stencil": 0, + "_clearFlags": 7, + "_rect": { + "__type__": "cc.Rect", + "x": 0, + "y": 0, + "width": 1, + "height": 1 + }, + "_aperture": 19, + "_shutter": 7, + "_iso": 0, + "_screenScale": 1, + "_visibility": 41943040, + "_targetTexture": null, + "_cameraType": -1, + "_trackingType": 0, + "_id": "63WIch3o5BEYRlXzTT0oWc" + }, + { + "__type__": "cc.Node", + "_name": "Heart", + "_objFlags": 0, + "_parent": { + "__id__": 2 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 6 + }, + { + "__id__": 7 + }, + { + "__id__": 8 + } + ], + "_prefab": null, + "_lpos": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": -1 + }, + "_lrot": { + "__type__": "cc.Quat", + "x": 0, + "y": 0, + "z": 0, + "w": 1 + }, + "_lscale": { + "__type__": "cc.Vec3", + "x": 1, + "y": 1, + "z": 1 + }, + "_layer": 33554432, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "9fP7ZR5B5MM7GPE8gpQmM5" + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 5 + }, + "_enabled": true, + "__prefab": null, + "_contentSize": { + "__type__": "cc.Size", + "width": 100, + "height": 100 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "912kcytxFB1oVYqZNI9Ruz" + }, + { + "__type__": "cc.ParticleSystem2D", + "_name": "Node", + "_objFlags": 0, + "node": { + "__id__": 5 + }, + "_enabled": true, + "__prefab": null, + "_customMaterial": null, + "_srcBlendFactor": 2, + "_dstBlendFactor": 1, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "duration": -1, + "emissionRate": 999.999985098839, + "life": 0.20000000298023224, + "lifeVar": 0.5, + "angle": 360, + "angleVar": 360, + "startSize": 3.369999885559082, + "startSizeVar": 50, + "endSize": 30.31999969482422, + "endSizeVar": 0, + "startSpin": -47.369998931884766, + "startSpinVar": 0, + "endSpin": -47.369998931884766, + "endSpinVar": -142.11000061035156, + "sourcePos": { + "__type__": "cc.Vec2", + "x": 0, + "y": 0 + }, + "posVar": { + "__type__": "cc.Vec2", + "x": 7, + "y": 7 + }, + "emitterMode": 0, + "gravity": { + "__type__": "cc.Vec2", + "x": 0.25, + "y": 0.8600000143051147 + }, + "speed": 0, + "speedVar": 190.7899932861328, + "tangentialAccel": -92.11000061035156, + "tangentialAccelVar": 65.79000091552734, + "radialAccel": -671.0499877929688, + "radialAccelVar": 65.79000091552734, + "rotationIsDir": false, + "startRadius": 100, + "startRadiusVar": 0, + "endRadius": 0, + "endRadiusVar": 0, + "rotatePerS": 0, + "rotatePerSVar": 0, + "playOnLoad": true, + "autoRemoveOnFinish": false, + "_preview": true, + "preview": true, + "_custom": false, + "_file": { + "__uuid__": "86f25d5c-9de5-454f-a5f9-ee16603e6701", + "__expectedType__": "cc.ParticleAsset" + }, + "_spriteFrame": { + "__uuid__": "24c419ea-63a8-4ea1-a9d0-7fc469489bbc@f9941", + "__expectedType__": "cc.SpriteFrame" + }, + "_totalParticles": 200, + "_startColor": { + "__type__": "cc.Color", + "r": 202, + "g": 200, + "b": 86, + "a": 163 + }, + "_startColorVar": { + "__type__": "cc.Color", + "r": 229, + "g": 255, + "b": 173, + "a": 198 + }, + "_endColor": { + "__type__": "cc.Color", + "r": 173, + "g": 161, + "b": 19, + "a": 214 + }, + "_endColorVar": { + "__type__": "cc.Color", + "r": 107, + "g": 249, + "b": 249, + "a": 188 + }, + "_positionType": 0, + "_id": "f826psilFHT7i3ZtXFqg6B" + }, + { + "__type__": "ae2d8iSk19Mu4qQwL5kOtqc", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 5 + }, + "_enabled": true, + "__prefab": null, + "_id": "37a2l31PBFOJO+ij47iuuN" + }, + { + "__type__": "cc.Node", + "_name": "T", + "_objFlags": 0, + "_parent": { + "__id__": 2 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 10 + }, + { + "__id__": 11 + }, + { + "__id__": 12 + } + ], + "_prefab": null, + "_lpos": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": -1 + }, + "_lrot": { + "__type__": "cc.Quat", + "x": 0, + "y": 0, + "z": 0, + "w": 1 + }, + "_lscale": { + "__type__": "cc.Vec3", + "x": 1, + "y": 1, + "z": 1 + }, + "_layer": 33554432, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "d1YRfux3tNILl5tr6FWCDv" + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 9 + }, + "_enabled": true, + "__prefab": null, + "_contentSize": { + "__type__": "cc.Size", + "width": 100, + "height": 100 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "4924ch8lhNVZXr2F9o0OX6" + }, + { + "__type__": "cc.ParticleSystem2D", + "_name": "Node", + "_objFlags": 0, + "node": { + "__id__": 9 + }, + "_enabled": true, + "__prefab": null, + "_customMaterial": null, + "_srcBlendFactor": 2, + "_dstBlendFactor": 1, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "duration": -1, + "emissionRate": 999.999985098839, + "life": 0.20000000298023224, + "lifeVar": 0.5, + "angle": 360, + "angleVar": 360, + "startSize": 3.369999885559082, + "startSizeVar": 50, + "endSize": 30.31999969482422, + "endSizeVar": 0, + "startSpin": -47.369998931884766, + "startSpinVar": 0, + "endSpin": -47.369998931884766, + "endSpinVar": -142.11000061035156, + "sourcePos": { + "__type__": "cc.Vec2", + "x": 0, + "y": 0 + }, + "posVar": { + "__type__": "cc.Vec2", + "x": 7, + "y": 7 + }, + "emitterMode": 0, + "gravity": { + "__type__": "cc.Vec2", + "x": 0.25, + "y": 0.8600000143051147 + }, + "speed": 0, + "speedVar": 190.7899932861328, + "tangentialAccel": -92.11000061035156, + "tangentialAccelVar": 65.79000091552734, + "radialAccel": -671.0499877929688, + "radialAccelVar": 65.79000091552734, + "rotationIsDir": false, + "startRadius": 100, + "startRadiusVar": 0, + "endRadius": 0, + "endRadiusVar": 0, + "rotatePerS": 0, + "rotatePerSVar": 0, + "playOnLoad": true, + "autoRemoveOnFinish": false, + "_preview": true, + "preview": true, + "_custom": false, + "_file": { + "__uuid__": "86f25d5c-9de5-454f-a5f9-ee16603e6701", + "__expectedType__": "cc.ParticleAsset" + }, + "_spriteFrame": { + "__uuid__": "24c419ea-63a8-4ea1-a9d0-7fc469489bbc@f9941", + "__expectedType__": "cc.SpriteFrame" + }, + "_totalParticles": 200, + "_startColor": { + "__type__": "cc.Color", + "r": 202, + "g": 200, + "b": 86, + "a": 163 + }, + "_startColorVar": { + "__type__": "cc.Color", + "r": 229, + "g": 255, + "b": 173, + "a": 198 + }, + "_endColor": { + "__type__": "cc.Color", + "r": 173, + "g": 161, + "b": 19, + "a": 214 + }, + "_endColorVar": { + "__type__": "cc.Color", + "r": 107, + "g": 249, + "b": 249, + "a": 188 + }, + "_positionType": 0, + "_id": "6blXbQs1FB1rhm+fUpPmHo" + }, + { + "__type__": "3e0d2uf/TxIpKJeFhE5QIxr", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 9 + }, + "_enabled": true, + "__prefab": null, + "_id": "38kVXLHYFIAaBkex/lsIHz" + }, + { + "__type__": "cc.Node", + "_name": "V", + "_objFlags": 0, + "_parent": { + "__id__": 2 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 14 + }, + { + "__id__": 15 + }, + { + "__id__": 16 + } + ], + "_prefab": null, + "_lpos": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": -1 + }, + "_lrot": { + "__type__": "cc.Quat", + "x": 0, + "y": 0, + "z": 0, + "w": 1 + }, + "_lscale": { + "__type__": "cc.Vec3", + "x": 1, + "y": 1, + "z": 1 + }, + "_layer": 33554432, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "e7EZCHeptBRbRBwgMZqyi6" + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 13 + }, + "_enabled": true, + "__prefab": null, + "_contentSize": { + "__type__": "cc.Size", + "width": 100, + "height": 100 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "851PoKLZ9CeoO1253YPoV4" + }, + { + "__type__": "cc.ParticleSystem2D", + "_name": "Node", + "_objFlags": 0, + "node": { + "__id__": 13 + }, + "_enabled": true, + "__prefab": null, + "_customMaterial": null, + "_srcBlendFactor": 2, + "_dstBlendFactor": 1, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "duration": -1, + "emissionRate": 999.999985098839, + "life": 0.20000000298023224, + "lifeVar": 0.5, + "angle": 360, + "angleVar": 360, + "startSize": 3.369999885559082, + "startSizeVar": 50, + "endSize": 30.31999969482422, + "endSizeVar": 0, + "startSpin": -47.369998931884766, + "startSpinVar": 0, + "endSpin": -47.369998931884766, + "endSpinVar": -142.11000061035156, + "sourcePos": { + "__type__": "cc.Vec2", + "x": 0, + "y": 0 + }, + "posVar": { + "__type__": "cc.Vec2", + "x": 7, + "y": 7 + }, + "emitterMode": 0, + "gravity": { + "__type__": "cc.Vec2", + "x": 0.25, + "y": 0.8600000143051147 + }, + "speed": 0, + "speedVar": 190.7899932861328, + "tangentialAccel": -92.11000061035156, + "tangentialAccelVar": 65.79000091552734, + "radialAccel": -671.0499877929688, + "radialAccelVar": 65.79000091552734, + "rotationIsDir": false, + "startRadius": 100, + "startRadiusVar": 0, + "endRadius": 0, + "endRadiusVar": 0, + "rotatePerS": 0, + "rotatePerSVar": 0, + "playOnLoad": true, + "autoRemoveOnFinish": false, + "_preview": true, + "preview": true, + "_custom": false, + "_file": { + "__uuid__": "86f25d5c-9de5-454f-a5f9-ee16603e6701", + "__expectedType__": "cc.ParticleAsset" + }, + "_spriteFrame": { + "__uuid__": "24c419ea-63a8-4ea1-a9d0-7fc469489bbc@f9941", + "__expectedType__": "cc.SpriteFrame" + }, + "_totalParticles": 200, + "_startColor": { + "__type__": "cc.Color", + "r": 202, + "g": 200, + "b": 86, + "a": 163 + }, + "_startColorVar": { + "__type__": "cc.Color", + "r": 229, + "g": 255, + "b": 173, + "a": 198 + }, + "_endColor": { + "__type__": "cc.Color", + "r": 173, + "g": 161, + "b": 19, + "a": 214 + }, + "_endColorVar": { + "__type__": "cc.Color", + "r": 107, + "g": 249, + "b": 249, + "a": 188 + }, + "_positionType": 0, + "_id": "d8mM+vR1VJKJvbrxEZGFJX" + }, + { + "__type__": "6eb33CO51xA4LUUt2PhhO/z", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 13 + }, + "_enabled": true, + "__prefab": null, + "_id": "2f5SsmiH1FfbBRd9B6/7p8" + }, + { + "__type__": "cc.Node", + "_name": "Split", + "_objFlags": 0, + "_parent": { + "__id__": 2 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 18 + }, + { + "__id__": 19 + }, + { + "__id__": 20 + } + ], + "_prefab": null, + "_lpos": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": -1 + }, + "_lrot": { + "__type__": "cc.Quat", + "x": 0, + "y": 0, + "z": 0, + "w": 1 + }, + "_lscale": { + "__type__": "cc.Vec3", + "x": 1, + "y": 1, + "z": 1 + }, + "_layer": 33554432, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "25WEs1KVhPt56vwgNFrjNQ" + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 17 + }, + "_enabled": true, + "__prefab": null, + "_contentSize": { + "__type__": "cc.Size", + "width": 100, + "height": 100 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "f2WduZrghG+6hXqmzhdukf" + }, + { + "__type__": "cc.ParticleSystem2D", + "_name": "Node", + "_objFlags": 0, + "node": { + "__id__": 17 + }, + "_enabled": true, + "__prefab": null, + "_customMaterial": null, + "_srcBlendFactor": 2, + "_dstBlendFactor": 1, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "duration": -1, + "emissionRate": 999.999985098839, + "life": 0.20000000298023224, + "lifeVar": 0.5, + "angle": 360, + "angleVar": 360, + "startSize": 3.369999885559082, + "startSizeVar": 50, + "endSize": 30.31999969482422, + "endSizeVar": 0, + "startSpin": -47.369998931884766, + "startSpinVar": 0, + "endSpin": -47.369998931884766, + "endSpinVar": -142.11000061035156, + "sourcePos": { + "__type__": "cc.Vec2", + "x": 0, + "y": 0 + }, + "posVar": { + "__type__": "cc.Vec2", + "x": 7, + "y": 7 + }, + "emitterMode": 0, + "gravity": { + "__type__": "cc.Vec2", + "x": 0.25, + "y": 0.8600000143051147 + }, + "speed": 0, + "speedVar": 190.7899932861328, + "tangentialAccel": -92.11000061035156, + "tangentialAccelVar": 65.79000091552734, + "radialAccel": -671.0499877929688, + "radialAccelVar": 65.79000091552734, + "rotationIsDir": false, + "startRadius": 100, + "startRadiusVar": 0, + "endRadius": 0, + "endRadiusVar": 0, + "rotatePerS": 0, + "rotatePerSVar": 0, + "playOnLoad": true, + "autoRemoveOnFinish": false, + "_preview": true, + "preview": true, + "_custom": false, + "_file": { + "__uuid__": "86f25d5c-9de5-454f-a5f9-ee16603e6701", + "__expectedType__": "cc.ParticleAsset" + }, + "_spriteFrame": { + "__uuid__": "24c419ea-63a8-4ea1-a9d0-7fc469489bbc@f9941", + "__expectedType__": "cc.SpriteFrame" + }, + "_totalParticles": 200, + "_startColor": { + "__type__": "cc.Color", + "r": 202, + "g": 200, + "b": 86, + "a": 163 + }, + "_startColorVar": { + "__type__": "cc.Color", + "r": 229, + "g": 255, + "b": 173, + "a": 198 + }, + "_endColor": { + "__type__": "cc.Color", + "r": 173, + "g": 161, + "b": 19, + "a": 214 + }, + "_endColorVar": { + "__type__": "cc.Color", + "r": 107, + "g": 249, + "b": 249, + "a": 188 + }, + "_positionType": 0, + "_id": "3fhGsk+3JEtKf90pctwofW" + }, + { + "__type__": "ad47d0CVWhJJbEdVhc/5bKj", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 17 + }, + "_enabled": true, + "__prefab": null, + "_id": "adoWWIkoFMc5tjzewatZkP" + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 2 + }, + "_enabled": true, + "__prefab": null, + "_contentSize": { + "__type__": "cc.Size", + "width": 960, + "height": 640 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "d6rUX5yfhMlKoWX2bSbawx" + }, + { + "__type__": "cc.Canvas", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 2 + }, + "_enabled": true, + "__prefab": null, + "_cameraComponent": { + "__id__": 4 + }, + "_alignCanvasWithScreen": true, + "_id": "12O/ljcVlEqLmVm3U2gEOQ" + }, + { + "__type__": "cc.Widget", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 2 + }, + "_enabled": true, + "__prefab": null, + "_alignFlags": 45, + "_target": null, + "_left": 0, + "_right": 0, + "_top": 5.684341886080802e-14, + "_bottom": 5.684341886080802e-14, + "_horizontalCenter": 0, + "_verticalCenter": 0, + "_isAbsLeft": true, + "_isAbsRight": true, + "_isAbsTop": true, + "_isAbsBottom": true, + "_isAbsHorizontalCenter": true, + "_isAbsVerticalCenter": true, + "_originalWidth": 0, + "_originalHeight": 0, + "_alignMode": 2, + "_lockFlags": 0, + "_id": "c5V1EV8IpMtrIvY1OE9t2u" + }, + { + "__type__": "cc.SceneGlobals", + "ambient": { + "__id__": 25 + }, + "shadows": { + "__id__": 26 + }, + "_skybox": { + "__id__": 27 + }, + "fog": { + "__id__": 28 + }, + "octree": { + "__id__": 29 + } + }, + { + "__type__": "cc.AmbientInfo", + "_skyColorHDR": { + "__type__": "cc.Vec4", + "x": 0, + "y": 0, + "z": 0, + "w": 0.520833125 + }, + "_skyColor": { + "__type__": "cc.Vec4", + "x": 0, + "y": 0, + "z": 0, + "w": 0.520833125 + }, + "_skyIllumHDR": 20000, + "_skyIllum": 20000, + "_groundAlbedoHDR": { + "__type__": "cc.Vec4", + "x": 0, + "y": 0, + "z": 0, + "w": 0 + }, + "_groundAlbedo": { + "__type__": "cc.Vec4", + "x": 0, + "y": 0, + "z": 0, + "w": 0 + }, + "_skyColorLDR": { + "__type__": "cc.Vec4", + "x": 0.2, + "y": 0.5, + "z": 0.8, + "w": 1 + }, + "_skyIllumLDR": 20000, + "_groundAlbedoLDR": { + "__type__": "cc.Vec4", + "x": 0.2, + "y": 0.2, + "z": 0.2, + "w": 1 + } + }, + { + "__type__": "cc.ShadowsInfo", + "_enabled": false, + "_type": 0, + "_normal": { + "__type__": "cc.Vec3", + "x": 0, + "y": 1, + "z": 0 + }, + "_distance": 0, + "_shadowColor": { + "__type__": "cc.Color", + "r": 76, + "g": 76, + "b": 76, + "a": 255 + }, + "_maxReceived": 4, + "_size": { + "__type__": "cc.Vec2", + "x": 512, + "y": 512 + } + }, + { + "__type__": "cc.SkyboxInfo", + "_envLightingType": 0, + "_envmapHDR": null, + "_envmap": null, + "_envmapLDR": null, + "_diffuseMapHDR": null, + "_diffuseMapLDR": null, + "_enabled": false, + "_useHDR": true, + "_editableMaterial": null, + "_reflectionHDR": null, + "_reflectionLDR": null, + "_rotationAngle": 0 + }, + { + "__type__": "cc.FogInfo", + "_type": 0, + "_fogColor": { + "__type__": "cc.Color", + "r": 200, + "g": 200, + "b": 200, + "a": 255 + }, + "_enabled": false, + "_fogDensity": 0.3, + "_fogStart": 0.5, + "_fogEnd": 300, + "_fogAtten": 5, + "_fogTop": 1.5, + "_fogRange": 1.2, + "_accurate": false + }, + { + "__type__": "cc.OctreeInfo", + "_enabled": false, + "_minPos": { + "__type__": "cc.Vec3", + "x": -1024, + "y": -1024, + "z": -1024 + }, + "_maxPos": { + "__type__": "cc.Vec3", + "x": 1024, + "y": 1024, + "z": 1024 + }, + "_depth": 8 + } +] \ No newline at end of file diff --git a/hurt/assets/scene.scene.meta b/hurt/assets/scene.scene.meta new file mode 100644 index 0000000..6060d9a --- /dev/null +++ b/hurt/assets/scene.scene.meta @@ -0,0 +1,11 @@ +{ + "ver": "1.1.40", + "importer": "scene", + "imported": true, + "uuid": "449b714b-b3bf-4fdc-9316-f7125cd8b382", + "files": [ + ".json" + ], + "subMetas": {}, + "userData": {} +} diff --git a/hurt/package.json b/hurt/package.json new file mode 100644 index 0000000..55d632d --- /dev/null +++ b/hurt/package.json @@ -0,0 +1,8 @@ +{ + "name": "Hurt", + "uuid": "06f358b4-7804-4fc7-827b-a4c616247b5d", + "version": "3.6.2", + "creator": { + "version": "3.6.2" + } +} diff --git a/hurt/settings/v2/packages/cocos-service.json b/hurt/settings/v2/packages/cocos-service.json new file mode 100644 index 0000000..0458bf0 --- /dev/null +++ b/hurt/settings/v2/packages/cocos-service.json @@ -0,0 +1,42 @@ +{ + "game": { + "app_id": "680120552", + "name": "hurt", + "c_id": "0" + }, + "appConfigMaps": [ + { + "app_id": "UNKNOW", + "config_id": "078573" + }, + { + "app_id": "680120552", + "config_id": "80408b" + } + ], + "configs": [ + { + "app_id": "UNKNOW", + "config_id": "078573", + "config_name": "Default", + "config_remarks": "", + "services": [] + }, + { + "app_id": "680120552", + "config_id": "80408b", + "config_name": "Default", + "config_remarks": "", + "services": [ + { + "service_id": "235", + "enable": true, + "param": { + "app_id": "680120552", + "store_id": "H5" + } + } + ] + } + ] +} diff --git a/hurt/settings/v2/packages/engine.json b/hurt/settings/v2/packages/engine.json new file mode 100644 index 0000000..b5748c2 --- /dev/null +++ b/hurt/settings/v2/packages/engine.json @@ -0,0 +1,141 @@ +{ + "__version__": "1.0.7", + "modules": { + "cache": { + "base": { + "_value": true + }, + "graphcis": { + "_value": true + }, + "gfx-webgl": { + "_value": true + }, + "gfx-webgl2": { + "_value": true + }, + "animation": { + "_value": true + }, + "skeletal-animation": { + "_value": false + }, + "3d": { + "_value": false + }, + "2d": { + "_value": true + }, + "xr": { + "_value": false + }, + "ui": { + "_value": true + }, + "particle": { + "_value": false + }, + "physics": { + "_value": false, + "_option": "physics-ammo" + }, + "physics-ammo": { + "_value": false + }, + "physics-cannon": { + "_value": false + }, + "physics-physx": { + "_value": false + }, + "physics-builtin": { + "_value": false + }, + "physics-2d": { + "_value": true, + "_option": "physics-2d-box2d" + }, + "physics-2d-box2d": { + "_value": false + }, + "physics-2d-builtin": { + "_value": false + }, + "intersection-2d": { + "_value": true + }, + "primitive": { + "_value": false + }, + "profiler": { + "_value": true + }, + "occlusion-query": { + "_value": false + }, + "geometry-renderer": { + "_value": false + }, + "debug-renderer": { + "_value": false + }, + "particle-2d": { + "_value": true + }, + "audio": { + "_value": true + }, + "video": { + "_value": true + }, + "webview": { + "_value": true + }, + "tween": { + "_value": true + }, + "terrain": { + "_value": false + }, + "tiled-map": { + "_value": true + }, + "spine": { + "_value": true + }, + "dragon-bones": { + "_value": true + }, + "marionette": { + "_value": false + }, + "custom-pipeline": { + "_value": false + } + }, + "includeModules": [ + "2d", + "animation", + "audio", + "base", + "dragon-bones", + "gfx-webgl", + "gfx-webgl2", + "intersection-2d", + "particle-2d", + "physics-2d-box2d", + "profiler", + "spine", + "tiled-map", + "tween", + "ui", + "video", + "webview" + ], + "noDeprecatedFeatures": { + "value": false, + "version": "" + }, + "flags": {} + } +} diff --git a/hurt/tsconfig.json b/hurt/tsconfig.json new file mode 100644 index 0000000..7dc649a --- /dev/null +++ b/hurt/tsconfig.json @@ -0,0 +1,9 @@ +{ + /* Base configuration. Do not edit this field. */ + "extends": "./temp/tsconfig.cocos.json", + + /* Add your custom configuration here. */ + "compilerOptions": { + "strict": false + } +}