diff --git a/assets/fonts.meta b/assets/fonts.meta new file mode 100644 index 0000000..ea97359 --- /dev/null +++ b/assets/fonts.meta @@ -0,0 +1,12 @@ +{ + "ver": "1.1.0", + "importer": "directory", + "imported": true, + "uuid": "630c0c69-9712-48d0-b472-e6b25adba8f2", + "files": [], + "subMetas": {}, + "userData": { + "compressionType": {}, + "isRemoteBundle": {} + } +} diff --git a/assets/fonts/Itim-Regular.ttf b/assets/fonts/Itim-Regular.ttf new file mode 100644 index 0000000..153aaeb Binary files /dev/null and b/assets/fonts/Itim-Regular.ttf differ diff --git a/assets/fonts/Itim-Regular.ttf.meta b/assets/fonts/Itim-Regular.ttf.meta new file mode 100644 index 0000000..c8d3bae --- /dev/null +++ b/assets/fonts/Itim-Regular.ttf.meta @@ -0,0 +1,12 @@ +{ + "ver": "1.0.1", + "importer": "ttf-font", + "imported": true, + "uuid": "2bec037d-69ec-4bba-8ba9-55c05f1878fa", + "files": [ + ".json", + "Itim-Regular.ttf" + ], + "subMetas": {}, + "userData": {} +} diff --git a/assets/images/menu.meta b/assets/images/menu.meta new file mode 100644 index 0000000..ab31bb9 --- /dev/null +++ b/assets/images/menu.meta @@ -0,0 +1,12 @@ +{ + "ver": "1.1.0", + "importer": "directory", + "imported": true, + "uuid": "e6427f09-b939-4e6d-9fce-2fa3b29b6cbd", + "files": [], + "subMetas": {}, + "userData": { + "compressionType": {}, + "isRemoteBundle": {} + } +} diff --git a/assets/images/menu/bg.png b/assets/images/menu/bg.png new file mode 100644 index 0000000..bd32063 Binary files /dev/null and b/assets/images/menu/bg.png differ diff --git a/assets/images/menu/bg.png.meta b/assets/images/menu/bg.png.meta new file mode 100644 index 0000000..cc3e00b --- /dev/null +++ b/assets/images/menu/bg.png.meta @@ -0,0 +1,134 @@ +{ + "ver": "1.0.25", + "importer": "image", + "imported": true, + "uuid": "bdd9ad92-0485-4a42-ab48-fb16b7b6dc96", + "files": [ + ".json", + ".png" + ], + "subMetas": { + "6c48a": { + "importer": "texture", + "uuid": "bdd9ad92-0485-4a42-ab48-fb16b7b6dc96@6c48a", + "displayName": "bg", + "id": "6c48a", + "name": "texture", + "userData": { + "wrapModeS": "clamp-to-edge", + "wrapModeT": "clamp-to-edge", + "imageUuidOrDatabaseUri": "bdd9ad92-0485-4a42-ab48-fb16b7b6dc96", + "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": "bdd9ad92-0485-4a42-ab48-fb16b7b6dc96@f9941", + "displayName": "bg", + "id": "f9941", + "name": "spriteFrame", + "userData": { + "trimType": "auto", + "trimThreshold": 1, + "rotated": false, + "offsetX": 0, + "offsetY": -0.5, + "trimX": 0, + "trimY": 1, + "width": 948, + "height": 880, + "rawWidth": 948, + "rawHeight": 881, + "borderTop": 0, + "borderBottom": 0, + "borderLeft": 0, + "borderRight": 0, + "packable": true, + "pixelsToUnit": 100, + "pivotX": 0.5, + "pivotY": 0.5, + "meshType": 0, + "vertices": { + "rawPosition": [ + -474, + -440, + 0, + 474, + -440, + 0, + -474, + 440, + 0, + 474, + 440, + 0 + ], + "indexes": [ + 0, + 1, + 2, + 2, + 1, + 3 + ], + "uv": [ + 0, + 880, + 948, + 880, + 0, + 0, + 948, + 0 + ], + "nuv": [ + 0, + 0, + 1, + 0, + 0, + 0.9988649262202043, + 1, + 0.9988649262202043 + ], + "minPos": [ + -474, + -440, + 0 + ], + "maxPos": [ + 474, + 440, + 0 + ] + }, + "isUuid": true, + "imageUuidOrDatabaseUri": "bdd9ad92-0485-4a42-ab48-fb16b7b6dc96@6c48a", + "atlasUuid": "" + }, + "ver": "1.0.11", + "imported": true, + "files": [ + ".json" + ], + "subMetas": {} + } + }, + "userData": { + "type": "sprite-frame", + "fixAlphaTransparencyArtifacts": true, + "hasAlpha": true, + "redirect": "bdd9ad92-0485-4a42-ab48-fb16b7b6dc96@f9941" + } +} diff --git a/assets/images/menu/play.png b/assets/images/menu/play.png new file mode 100644 index 0000000..14cc4f0 Binary files /dev/null and b/assets/images/menu/play.png differ diff --git a/assets/images/menu/play.png.meta b/assets/images/menu/play.png.meta new file mode 100644 index 0000000..ecbb80e --- /dev/null +++ b/assets/images/menu/play.png.meta @@ -0,0 +1,134 @@ +{ + "ver": "1.0.25", + "importer": "image", + "imported": true, + "uuid": "4cbbee2d-a90b-4ebd-816a-fa476a9b43a0", + "files": [ + ".json", + ".png" + ], + "subMetas": { + "6c48a": { + "importer": "texture", + "uuid": "4cbbee2d-a90b-4ebd-816a-fa476a9b43a0@6c48a", + "displayName": "play", + "id": "6c48a", + "name": "texture", + "userData": { + "wrapModeS": "clamp-to-edge", + "wrapModeT": "clamp-to-edge", + "imageUuidOrDatabaseUri": "4cbbee2d-a90b-4ebd-816a-fa476a9b43a0", + "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": "4cbbee2d-a90b-4ebd-816a-fa476a9b43a0@f9941", + "displayName": "play", + "id": "f9941", + "name": "spriteFrame", + "userData": { + "trimType": "auto", + "trimThreshold": 1, + "rotated": false, + "offsetX": 0, + "offsetY": 0, + "trimX": 0, + "trimY": 0, + "width": 214, + "height": 215, + "rawWidth": 214, + "rawHeight": 215, + "borderTop": 0, + "borderBottom": 0, + "borderLeft": 0, + "borderRight": 0, + "packable": true, + "pixelsToUnit": 100, + "pivotX": 0.5, + "pivotY": 0.5, + "meshType": 0, + "vertices": { + "rawPosition": [ + -107, + -107.5, + 0, + 107, + -107.5, + 0, + -107, + 107.5, + 0, + 107, + 107.5, + 0 + ], + "indexes": [ + 0, + 1, + 2, + 2, + 1, + 3 + ], + "uv": [ + 0, + 215, + 214, + 215, + 0, + 0, + 214, + 0 + ], + "nuv": [ + 0, + 0, + 1, + 0, + 0, + 1, + 1, + 1 + ], + "minPos": [ + -107, + -107.5, + 0 + ], + "maxPos": [ + 107, + 107.5, + 0 + ] + }, + "isUuid": true, + "imageUuidOrDatabaseUri": "4cbbee2d-a90b-4ebd-816a-fa476a9b43a0@6c48a", + "atlasUuid": "" + }, + "ver": "1.0.11", + "imported": true, + "files": [ + ".json" + ], + "subMetas": {} + } + }, + "userData": { + "type": "sprite-frame", + "fixAlphaTransparencyArtifacts": true, + "hasAlpha": true, + "redirect": "4cbbee2d-a90b-4ebd-816a-fa476a9b43a0@f9941" + } +} diff --git a/assets/prefabs/Explosion.prefab b/assets/prefabs/Explosion.prefab index 4c99adc..57baf3e 100644 --- a/assets/prefabs/Explosion.prefab +++ b/assets/prefabs/Explosion.prefab @@ -55,7 +55,7 @@ "z": 0.127 }, "_mobility": 0, - "_layer": 33554432, + "_layer": 2097152, "_euler": { "__type__": "cc.Vec3", "x": 0, diff --git a/assets/prefabs/Slime.prefab b/assets/prefabs/Slime.prefab index 36cf2a2..c23b231 100644 --- a/assets/prefabs/Slime.prefab +++ b/assets/prefabs/Slime.prefab @@ -30,10 +30,13 @@ }, { "__id__": 8 + }, + { + "__id__": 10 } ], "_prefab": { - "__id__": 10 + "__id__": 13 }, "_lpos": { "__type__": "cc.Vec3", @@ -178,13 +181,84 @@ "__prefab": { "__id__": 9 }, - "gameManager": null, "_id": "" }, { "__type__": "cc.CompPrefabInfo", "fileId": "bdD3XWJu5AR4qMFJDlw5Tk" }, + { + "__type__": "cc.Button", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 1 + }, + "_enabled": true, + "__prefab": { + "__id__": 11 + }, + "clickEvents": [ + { + "__id__": 12 + } + ], + "_interactable": true, + "_transition": 0, + "_normalColor": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_hoverColor": { + "__type__": "cc.Color", + "r": 211, + "g": 211, + "b": 211, + "a": 255 + }, + "_pressedColor": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_disabledColor": { + "__type__": "cc.Color", + "r": 124, + "g": 124, + "b": 124, + "a": 255 + }, + "_normalSprite": { + "__uuid__": "92c6563b-4753-4500-b4b0-a7716b4988c4@f9941", + "__expectedType__": "cc.SpriteFrame" + }, + "_hoverSprite": null, + "_pressedSprite": null, + "_disabledSprite": null, + "_duration": 0.1, + "_zoomScale": 1.2, + "_target": null, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "d1TrRRLxVA6JWfNbl57i1Z" + }, + { + "__type__": "cc.ClickEvent", + "target": { + "__id__": 1 + }, + "component": "", + "_componentId": "01dd89fvFZN+IP9oejAqN6i", + "handler": "killSlime", + "customEventData": "" + }, { "__type__": "cc.PrefabInfo", "root": { diff --git a/assets/scenes/main.scene b/assets/scenes/main.scene index 94076b8..9572a1a 100644 --- a/assets/scenes/main.scene +++ b/assets/scenes/main.scene @@ -18,16 +18,19 @@ "__id__": 2 }, { - "__id__": 21 + "__id__": 5 }, { - "__id__": 25 + "__id__": 17 + }, + { + "__id__": 49 } ], "_active": true, "_components": [], "_prefab": { - "__id__": 47 + "__id__": 61 }, "_lpos": { "__type__": "cc.Vec3", @@ -58,47 +61,156 @@ }, "autoReleaseAssets": false, "_globals": { - "__id__": 48 + "__id__": 62 }, "_id": "14df8eed-a34b-4924-9d21-6e8e6ead64b9" }, { "__type__": "cc.Node", - "_name": "Canvas", + "_name": "GameManager", "_objFlags": 0, "_parent": { "__id__": 1 }, - "_children": [ + "_children": [], + "_active": true, + "_components": [ { "__id__": 3 - }, + } + ], + "_prefab": null, + "_lpos": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_lrot": { + "__type__": "cc.Quat", + "x": 0, + "y": 0, + "z": 0, + "w": 1 + }, + "_lscale": { + "__type__": "cc.Vec3", + "x": 1, + "y": 1, + "z": 1 + }, + "_mobility": 0, + "_layer": 1073741824, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "03yKNWgUlKbZeosUNVK1IV" + }, + { + "__type__": "576a7w6tTFLZYBf22szjqNJ", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 2 + }, + "_enabled": true, + "__prefab": null, + "slime": { + "__uuid__": "714f347a-f957-476c-aff1-71104576bb14", + "__expectedType__": "cc.Prefab" + }, + "slimeLayer": { + "__id__": 4 + }, + "score": { + "__id__": 15 + }, + "time": { + "__id__": 22 + }, + "canvas": { + "__id__": 12 + }, + "menu": { + "__id__": 24 + }, + "_id": "64H6/byhFMZ4zxluOtmlcC" + }, + { + "__type__": "cc.Node", + "_name": "SlimeLayer", + "_objFlags": 0, + "_parent": { + "__id__": 5 + }, + "_children": [], + "_active": true, + "_components": [ { - "__id__": 5 - }, + "__id__": 14 + } + ], + "_prefab": null, + "_lpos": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_lrot": { + "__type__": "cc.Quat", + "x": 0, + "y": 0, + "z": 0, + "w": 1 + }, + "_lscale": { + "__type__": "cc.Vec3", + "x": 1, + "y": 1, + "z": 1 + }, + "_mobility": 0, + "_layer": 1073741824, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "b1jk76PZBDWa9i2gCX4nun" + }, + { + "__type__": "cc.Node", + "_name": "Canvas", + "_objFlags": 0, + "_parent": { + "__id__": 1 + }, + "_children": [ { - "__id__": 8 + "__id__": 6 }, { - "__id__": 39 + "__id__": 8 }, { - "__id__": 41 + "__id__": 4 } ], "_active": true, "_components": [ { - "__id__": 44 - }, - { - "__id__": 37 + "__id__": 11 }, { - "__id__": 45 + "__id__": 12 }, { - "__id__": 46 + "__id__": 13 } ], "_prefab": null, @@ -136,13 +248,13 @@ "_name": "Camera", "_objFlags": 0, "_parent": { - "__id__": 2 + "__id__": 5 }, "_children": [], "_active": true, "_components": [ { - "__id__": 4 + "__id__": 7 } ], "_prefab": null, @@ -180,7 +292,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 3 + "__id__": 6 }, "_enabled": true, "__prefab": null, @@ -223,16 +335,16 @@ "_name": "Bg", "_objFlags": 0, "_parent": { - "__id__": 2 + "__id__": 5 }, "_children": [], "_active": true, "_components": [ { - "__id__": 6 + "__id__": 9 }, { - "__id__": 7 + "__id__": 10 } ], "_prefab": null, @@ -270,7 +382,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 5 + "__id__": 8 }, "_enabled": true, "__prefab": null, @@ -291,7 +403,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 5 + "__id__": 8 }, "_enabled": true, "__prefab": null, @@ -325,281 +437,97 @@ "_id": "14E8nbx2FPha6NxL+QWvNW" }, { - "__type__": "cc.Node", - "_name": "SlimeLayer", + "__type__": "cc.UITransform", + "_name": "", "_objFlags": 0, - "_parent": { - "__id__": 2 - }, - "_children": [ - { - "__id__": 9 - } - ], - "_active": true, - "_components": [ - { - "__id__": 38 - } - ], - "_prefab": null, - "_lpos": { - "__type__": "cc.Vec3", - "x": 0, - "y": 0, - "z": 0 - }, - "_lrot": { - "__type__": "cc.Quat", - "x": 0, - "y": 0, - "z": 0, - "w": 1 + "node": { + "__id__": 5 }, - "_lscale": { - "__type__": "cc.Vec3", - "x": 1, - "y": 1, - "z": 1 + "_enabled": true, + "__prefab": null, + "_contentSize": { + "__type__": "cc.Size", + "width": 960, + "height": 640 }, - "_mobility": 0, - "_layer": 1073741824, - "_euler": { - "__type__": "cc.Vec3", - "x": 0, - "y": 0, - "z": 0 + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 }, - "_id": "b1jk76PZBDWa9i2gCX4nun" + "_id": "d6rUX5yfhMlKoWX2bSbawx" }, { - "__type__": "cc.Node", + "__type__": "cc.Canvas", + "_name": "", "_objFlags": 0, - "_parent": { - "__id__": 8 + "node": { + "__id__": 5 }, - "_prefab": { - "__id__": 10 + "_enabled": true, + "__prefab": null, + "_cameraComponent": { + "__id__": 7 }, - "__editorExtras__": {} + "_alignCanvasWithScreen": true, + "_id": "12O/ljcVlEqLmVm3U2gEOQ" }, { - "__type__": "cc.PrefabInfo", - "root": { - "__id__": 9 - }, - "asset": { - "__uuid__": "714f347a-f957-476c-aff1-71104576bb14", - "__expectedType__": "cc.Prefab" - }, - "fileId": "b6o+8qxA5HkbCjsRPfs+02", - "instance": { - "__id__": 11 + "__type__": "cc.Widget", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 5 }, - "targetOverrides": null, - "nestedPrefabInstanceRoots": null + "_enabled": true, + "__prefab": null, + "_alignFlags": 45, + "_target": null, + "_left": -5.684341886080802e-14, + "_right": -5.684341886080802e-14, + "_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.PrefabInstance", - "fileId": "6e1FUiibdHx4yAJhpcr+Ys", - "prefabRootNode": null, - "mountedChildren": [], - "mountedComponents": [], - "propertyOverrides": [ - { - "__id__": 12 - }, - { - "__id__": 14 - }, - { - "__id__": 15 - }, - { - "__id__": 16 - }, - { - "__id__": 17 - }, - { - "__id__": 19 - } - ], - "removedComponents": [] - }, - { - "__type__": "CCPropertyOverrideInfo", - "targetInfo": { - "__id__": 13 - }, - "propertyPath": [ - "_name" - ], - "value": "Slime" - }, - { - "__type__": "cc.TargetInfo", - "localID": [ - "b6o+8qxA5HkbCjsRPfs+02" - ] - }, - { - "__type__": "CCPropertyOverrideInfo", - "targetInfo": { - "__id__": 13 - }, - "propertyPath": [ - "_lpos" - ], - "value": { - "__type__": "cc.Vec3", - "x": 0, - "y": 0, - "z": 0 - } - }, - { - "__type__": "CCPropertyOverrideInfo", - "targetInfo": { - "__id__": 13 - }, - "propertyPath": [ - "_lrot" - ], - "value": { - "__type__": "cc.Quat", - "x": 0, - "y": 0, - "z": 0, - "w": 1 - } - }, - { - "__type__": "CCPropertyOverrideInfo", - "targetInfo": { - "__id__": 13 - }, - "propertyPath": [ - "_euler" - ], - "value": { - "__type__": "cc.Vec3", - "x": 0, - "y": 0, - "z": 0 - } - }, - { - "__type__": "CCPropertyOverrideInfo", - "targetInfo": { - "__id__": 18 - }, - "propertyPath": [ - "_layer" - ], - "value": 1073741824 - }, - { - "__type__": "cc.TargetInfo", - "localID": [ - "b6o+8qxA5HkbCjsRPfs+02" - ] - }, - { - "__type__": "CCPropertyOverrideInfo", - "targetInfo": { - "__id__": 20 - }, - "propertyPath": [ - "gameManager" - ], - "value": { - "__id__": 21 - } - }, - { - "__type__": "cc.TargetInfo", - "localID": [ - "bdD3XWJu5AR4qMFJDlw5Tk" - ] - }, - { - "__type__": "cc.Node", - "_name": "GameManager", - "_objFlags": 0, - "_parent": { - "__id__": 1 - }, - "_children": [], - "_active": true, - "_components": [ - { - "__id__": 22 - } - ], - "_prefab": null, - "_lpos": { - "__type__": "cc.Vec3", - "x": 0, - "y": 0, - "z": 0 - }, - "_lrot": { - "__type__": "cc.Quat", - "x": 0, - "y": 0, - "z": 0, - "w": 1 - }, - "_lscale": { - "__type__": "cc.Vec3", - "x": 1, - "y": 1, - "z": 1 - }, - "_mobility": 0, - "_layer": 1073741824, - "_euler": { - "__type__": "cc.Vec3", - "x": 0, - "y": 0, - "z": 0 - }, - "_id": "03yKNWgUlKbZeosUNVK1IV" - }, - { - "__type__": "576a7w6tTFLZYBf22szjqNJ", + "__type__": "cc.UITransform", "_name": "", "_objFlags": 0, "node": { - "__id__": 21 + "__id__": 4 }, "_enabled": true, "__prefab": null, - "slime": { - "__uuid__": "714f347a-f957-476c-aff1-71104576bb14", - "__expectedType__": "cc.Prefab" - }, - "slimeLayer": { - "__id__": 8 - }, - "score": { - "__id__": 23 - }, - "time": { - "__id__": 30 + "_contentSize": { + "__type__": "cc.Size", + "width": 100, + "height": 100 }, - "canvas": { - "__id__": 37 + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 }, - "_id": "64H6/byhFMZ4zxluOtmlcC" + "_id": "c31vrpvUBEHpq/Z+sy/pOL" }, { "__type__": "cc.Label", "_name": "", "_objFlags": 0, "node": { - "__id__": 24 + "__id__": 16 }, "_enabled": true, "__prefab": null, @@ -609,7 +537,7 @@ "_color": { "__type__": "cc.Color", "r": 255, - "g": 165, + "g": 255, "b": 0, "a": 255 }, @@ -622,8 +550,11 @@ "_lineHeight": 40, "_overflow": 0, "_enableWrapText": true, - "_font": null, - "_isSystemFontUsed": true, + "_font": { + "__uuid__": "2bec037d-69ec-4bba-8ba9-55c05f1878fa", + "__expectedType__": "cc.TTFFont" + }, + "_isSystemFontUsed": false, "_spacingX": 0, "_isItalic": false, "_isBold": false, @@ -637,19 +568,19 @@ "_name": "Score", "_objFlags": 0, "_parent": { - "__id__": 25 + "__id__": 17 }, "_children": [], "_active": true, "_components": [ { - "__id__": 35 + "__id__": 47 }, { - "__id__": 23 + "__id__": 15 }, { - "__id__": 36 + "__id__": 48 } ], "_prefab": null, @@ -691,25 +622,28 @@ }, "_children": [ { - "__id__": 26 + "__id__": 18 }, { - "__id__": 24 + "__id__": 16 }, { - "__id__": 28 + "__id__": 20 + }, + { + "__id__": 24 } ], "_active": true, "_components": [ { - "__id__": 32 + "__id__": 44 }, { - "__id__": 33 + "__id__": 45 }, { - "__id__": 34 + "__id__": 46 } ], "_prefab": null, @@ -747,13 +681,13 @@ "_name": "Camera", "_objFlags": 0, "_parent": { - "__id__": 25 + "__id__": 17 }, "_children": [], "_active": true, "_components": [ { - "__id__": 27 + "__id__": 19 } ], "_prefab": null, @@ -777,7 +711,7 @@ "z": 1 }, "_mobility": 0, - "_layer": 1073741824, + "_layer": 33554432, "_euler": { "__type__": "cc.Vec3", "x": 0, @@ -791,7 +725,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 26 + "__id__": 18 }, "_enabled": true, "__prefab": null, @@ -834,19 +768,19 @@ "_name": "Time", "_objFlags": 0, "_parent": { - "__id__": 25 + "__id__": 17 }, "_children": [], "_active": true, "_components": [ { - "__id__": 29 + "__id__": 21 }, { - "__id__": 30 + "__id__": 22 }, { - "__id__": 31 + "__id__": 23 } ], "_prefab": null, @@ -884,7 +818,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 28 + "__id__": 20 }, "_enabled": true, "__prefab": null, @@ -905,74 +839,780 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 28 + "__id__": 20 + }, + "_enabled": true, + "__prefab": null, + "_customMaterial": null, + "_srcBlendFactor": 2, + "_dstBlendFactor": 4, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 0, + "a": 255 + }, + "_string": "倒计时", + "_horizontalAlign": 1, + "_verticalAlign": 1, + "_actualFontSize": 40, + "_fontSize": 40, + "_fontFamily": "Arial", + "_lineHeight": 40, + "_overflow": 0, + "_enableWrapText": true, + "_font": { + "__uuid__": "2bec037d-69ec-4bba-8ba9-55c05f1878fa", + "__expectedType__": "cc.TTFFont" + }, + "_isSystemFontUsed": false, + "_spacingX": 0, + "_isItalic": false, + "_isBold": false, + "_isUnderline": false, + "_underlineHeight": 2, + "_cacheMode": 0, + "_id": "960kLDvUZF7qLBGRyHbuZa" + }, + { + "__type__": "cc.Widget", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 20 + }, + "_enabled": true, + "__prefab": null, + "_alignFlags": 9, + "_target": null, + "_left": 20, + "_right": 0, + "_top": 20, + "_bottom": 0, + "_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": "18WcSRK9FN2Y+Thch3sMPV" + }, + { + "__type__": "cc.Node", + "_name": "Menu", + "_objFlags": 0, + "_parent": { + "__id__": 17 + }, + "_children": [ + { + "__id__": 25 + }, + { + "__id__": 28 + }, + { + "__id__": 31 + }, + { + "__id__": 34 + } + ], + "_active": true, + "_components": [ + { + "__id__": 42 + }, + { + "__id__": 43 + } + ], + "_prefab": null, + "_lpos": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_lrot": { + "__type__": "cc.Quat", + "x": 0, + "y": 0, + "z": 0, + "w": 1 + }, + "_lscale": { + "__type__": "cc.Vec3", + "x": 1, + "y": 1, + "z": 1 + }, + "_mobility": 0, + "_layer": 33554432, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "fcee4/jqNHa70ByOXoF3Cp" + }, + { + "__type__": "cc.Node", + "_name": "Bg", + "_objFlags": 0, + "_parent": { + "__id__": 24 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 26 + }, + { + "__id__": 27 + } + ], + "_prefab": null, + "_lpos": { + "__type__": "cc.Vec3", + "x": 5.684341886080802e-14, + "y": 0, + "z": 0 + }, + "_lrot": { + "__type__": "cc.Quat", + "x": 0, + "y": 0, + "z": 0, + "w": 1 + }, + "_lscale": { + "__type__": "cc.Vec3", + "x": 1, + "y": 1, + "z": 1 + }, + "_mobility": 0, + "_layer": 33554432, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "e8kC3RBmhM3Lb2a3mLxnGS" + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 25 + }, + "_enabled": true, + "__prefab": null, + "_contentSize": { + "__type__": "cc.Size", + "width": 379.154, + "height": 375.14424472573836 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "de+AsMa3JFW7aEflQVW0zp" + }, + { + "__type__": "cc.Sprite", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 25 + }, + "_enabled": true, + "__prefab": null, + "_customMaterial": null, + "_srcBlendFactor": 2, + "_dstBlendFactor": 4, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_spriteFrame": { + "__uuid__": "bdd9ad92-0485-4a42-ab48-fb16b7b6dc96@f9941", + "__expectedType__": "cc.SpriteFrame" + }, + "_type": 0, + "_fillType": 0, + "_sizeMode": 0, + "_fillCenter": { + "__type__": "cc.Vec2", + "x": 0, + "y": 0 + }, + "_fillStart": 0, + "_fillRange": 0, + "_isTrimmedMode": true, + "_useGrayscale": false, + "_atlas": null, + "_id": "cbGAPx9ExN3Z5ICDN1INaV" + }, + { + "__type__": "cc.Node", + "_name": "Title", + "_objFlags": 0, + "_parent": { + "__id__": 24 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 29 + }, + { + "__id__": 30 + } + ], + "_prefab": null, + "_lpos": { + "__type__": "cc.Vec3", + "x": 5.684341886080802e-14, + "y": 116.851, + "z": 0 + }, + "_lrot": { + "__type__": "cc.Quat", + "x": 0, + "y": 0, + "z": 0, + "w": 1 + }, + "_lscale": { + "__type__": "cc.Vec3", + "x": 1, + "y": 1, + "z": 1 + }, + "_mobility": 0, + "_layer": 33554432, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "bb8/uxrTBMrofOVkKCgIIy" + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 28 + }, + "_enabled": true, + "__prefab": null, + "_contentSize": { + "__type__": "cc.Size", + "width": 242.2, + "height": 50.4 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "acR+tbNdRBk4svo6CxZt6z" + }, + { + "__type__": "cc.Label", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 28 + }, + "_enabled": true, + "__prefab": null, + "_customMaterial": null, + "_srcBlendFactor": 2, + "_dstBlendFactor": 4, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_string": "Shot Slime!", + "_horizontalAlign": 1, + "_verticalAlign": 1, + "_actualFontSize": 50, + "_fontSize": 50, + "_fontFamily": "Arial", + "_lineHeight": 40, + "_overflow": 0, + "_enableWrapText": true, + "_font": { + "__uuid__": "2bec037d-69ec-4bba-8ba9-55c05f1878fa", + "__expectedType__": "cc.TTFFont" + }, + "_isSystemFontUsed": false, + "_spacingX": 0, + "_isItalic": false, + "_isBold": false, + "_isUnderline": false, + "_underlineHeight": 2, + "_cacheMode": 0, + "_id": "3ark36OjNPAJssQ3d2PYmN" + }, + { + "__type__": "cc.Node", + "_name": "Email", + "_objFlags": 0, + "_parent": { + "__id__": 24 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 32 + }, + { + "__id__": 33 + } + ], + "_prefab": null, + "_lpos": { + "__type__": "cc.Vec3", + "x": 5.684341886080802e-14, + "y": -135.226, + "z": 0 + }, + "_lrot": { + "__type__": "cc.Quat", + "x": 0, + "y": 0, + "z": 0, + "w": 1 + }, + "_lscale": { + "__type__": "cc.Vec3", + "x": 1, + "y": 1, + "z": 1 + }, + "_mobility": 0, + "_layer": 33554432, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "48NGJCbaRLAZHCbILg5cGc" + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 31 + }, + "_enabled": true, + "__prefab": null, + "_contentSize": { + "__type__": "cc.Size", + "width": 137.82, + "height": 50.4 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "31rWVjq/pIhY5/XvhNhcad" + }, + { + "__type__": "cc.Label", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 31 + }, + "_enabled": true, + "__prefab": null, + "_customMaterial": null, + "_srcBlendFactor": 2, + "_dstBlendFactor": 4, + "_color": { + "__type__": "cc.Color", + "r": 0, + "g": 0, + "b": 0, + "a": 255 + }, + "_string": "www.risu-p.com", + "_horizontalAlign": 1, + "_verticalAlign": 1, + "_actualFontSize": 20, + "_fontSize": 20, + "_fontFamily": "Arial", + "_lineHeight": 40, + "_overflow": 0, + "_enableWrapText": true, + "_font": { + "__uuid__": "2bec037d-69ec-4bba-8ba9-55c05f1878fa", + "__expectedType__": "cc.TTFFont" + }, + "_isSystemFontUsed": false, + "_spacingX": 0, + "_isItalic": false, + "_isBold": false, + "_isUnderline": false, + "_underlineHeight": 2, + "_cacheMode": 0, + "_id": "9e7VHl9ftKjqZrIYlgtOPW" + }, + { + "__type__": "cc.Node", + "_name": "Button", + "_objFlags": 0, + "_parent": { + "__id__": 24 + }, + "_children": [ + { + "__id__": 35 + } + ], + "_active": true, + "_components": [ + { + "__id__": 38 + }, + { + "__id__": 39 + }, + { + "__id__": 40 + } + ], + "_prefab": null, + "_lpos": { + "__type__": "cc.Vec3", + "x": 5.684341886080802e-14, + "y": 0, + "z": 0 + }, + "_lrot": { + "__type__": "cc.Quat", + "x": 0, + "y": 0, + "z": 0, + "w": 1 + }, + "_lscale": { + "__type__": "cc.Vec3", + "x": 1, + "y": 1, + "z": 1 + }, + "_mobility": 0, + "_layer": 33554432, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "57UXPawPlJzq7EFPQiqFNY" + }, + { + "__type__": "cc.Node", + "_name": "Label", + "_objFlags": 512, + "_parent": { + "__id__": 34 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 36 + }, + { + "__id__": 37 + } + ], + "_prefab": null, + "_lpos": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_lrot": { + "__type__": "cc.Quat", + "x": 0, + "y": 0, + "z": 0, + "w": 1 + }, + "_lscale": { + "__type__": "cc.Vec3", + "x": 1, + "y": 1, + "z": 1 + }, + "_mobility": 0, + "_layer": 33554432, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "2bnY5+1S1JUK055uJtLAW5" + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 35 + }, + "_enabled": true, + "__prefab": null, + "_contentSize": { + "__type__": "cc.Size", + "width": 100, + "height": 40 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "16522sq7xDv5XypN0/D4b5" + }, + { + "__type__": "cc.Label", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 35 + }, + "_enabled": true, + "__prefab": null, + "_customMaterial": null, + "_srcBlendFactor": 2, + "_dstBlendFactor": 4, + "_color": { + "__type__": "cc.Color", + "r": 0, + "g": 0, + "b": 0, + "a": 255 + }, + "_string": "", + "_horizontalAlign": 1, + "_verticalAlign": 1, + "_actualFontSize": 20, + "_fontSize": 20, + "_fontFamily": "Arial", + "_lineHeight": 40, + "_overflow": 1, + "_enableWrapText": false, + "_font": null, + "_isSystemFontUsed": true, + "_spacingX": 0, + "_isItalic": false, + "_isBold": false, + "_isUnderline": false, + "_underlineHeight": 2, + "_cacheMode": 0, + "_id": "a09jznLWBDuZdctsoaDehV" + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 34 + }, + "_enabled": true, + "__prefab": null, + "_contentSize": { + "__type__": "cc.Size", + "width": 86.029, + "height": 86.4310046728972 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "36maKNf75Jnbrw7wMbJ6FE" + }, + { + "__type__": "cc.Sprite", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 34 + }, + "_enabled": true, + "__prefab": null, + "_customMaterial": null, + "_srcBlendFactor": 2, + "_dstBlendFactor": 4, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_spriteFrame": { + "__uuid__": "4cbbee2d-a90b-4ebd-816a-fa476a9b43a0@f9941", + "__expectedType__": "cc.SpriteFrame" + }, + "_type": 1, + "_fillType": 0, + "_sizeMode": 0, + "_fillCenter": { + "__type__": "cc.Vec2", + "x": 0, + "y": 0 + }, + "_fillStart": 0, + "_fillRange": 0, + "_isTrimmedMode": true, + "_useGrayscale": false, + "_atlas": null, + "_id": "027EJU4A1EwrAbmQZj3mBU" + }, + { + "__type__": "cc.Button", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 34 + }, + "_enabled": true, + "__prefab": null, + "clickEvents": [ + { + "__id__": 41 + } + ], + "_interactable": true, + "_transition": 2, + "_normalColor": { + "__type__": "cc.Color", + "r": 214, + "g": 214, + "b": 214, + "a": 255 + }, + "_hoverColor": { + "__type__": "cc.Color", + "r": 211, + "g": 211, + "b": 211, + "a": 255 + }, + "_pressedColor": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_disabledColor": { + "__type__": "cc.Color", + "r": 124, + "g": 124, + "b": 124, + "a": 255 + }, + "_normalSprite": { + "__uuid__": "4cbbee2d-a90b-4ebd-816a-fa476a9b43a0@f9941", + "__expectedType__": "cc.SpriteFrame" + }, + "_hoverSprite": null, + "_pressedSprite": null, + "_disabledSprite": null, + "_duration": 0.1, + "_zoomScale": 1.2, + "_target": { + "__id__": 34 + }, + "_id": "f5kcF2edJNtY5ZDGT3zwuo" + }, + { + "__type__": "cc.ClickEvent", + "target": { + "__id__": 2 + }, + "component": "", + "_componentId": "576a7w6tTFLZYBf22szjqNJ", + "handler": "play", + "customEventData": "" + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 24 }, "_enabled": true, "__prefab": null, - "_customMaterial": null, - "_srcBlendFactor": 2, - "_dstBlendFactor": 4, - "_color": { - "__type__": "cc.Color", - "r": 255, - "g": 165, - "b": 0, - "a": 255 + "_contentSize": { + "__type__": "cc.Size", + "width": 100, + "height": 100 }, - "_string": "倒计时", - "_horizontalAlign": 1, - "_verticalAlign": 1, - "_actualFontSize": 40, - "_fontSize": 40, - "_fontFamily": "Arial", - "_lineHeight": 40, - "_overflow": 0, - "_enableWrapText": true, - "_font": null, - "_isSystemFontUsed": true, - "_spacingX": 0, - "_isItalic": false, - "_isBold": false, - "_isUnderline": false, - "_underlineHeight": 2, - "_cacheMode": 0, - "_id": "960kLDvUZF7qLBGRyHbuZa" + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "c8yEGsW9BBAKkLaR7UOQBy" }, { - "__type__": "cc.Widget", + "__type__": "cc.BlockInputEvents", "_name": "", "_objFlags": 0, "node": { - "__id__": 28 + "__id__": 24 }, "_enabled": true, "__prefab": null, - "_alignFlags": 9, - "_target": null, - "_left": 20, - "_right": 0, - "_top": 20, - "_bottom": 0, - "_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": "18WcSRK9FN2Y+Thch3sMPV" + "_id": "459ZO+YAFLBY4mHUFeOlFf" }, { "__type__": "cc.UITransform", "_name": "", "_objFlags": 0, "node": { - "__id__": 25 + "__id__": 17 }, "_enabled": true, "__prefab": null, @@ -993,12 +1633,12 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 25 + "__id__": 17 }, "_enabled": true, "__prefab": null, "_cameraComponent": { - "__id__": 27 + "__id__": 19 }, "_alignCanvasWithScreen": true, "_id": "e54r7p4wJLbIhn2o95vZfG" @@ -1008,7 +1648,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 25 + "__id__": 17 }, "_enabled": true, "__prefab": null, @@ -1037,7 +1677,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 24 + "__id__": 16 }, "_enabled": true, "__prefab": null, @@ -1058,7 +1698,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 24 + "__id__": 16 }, "_enabled": true, "__prefab": null, @@ -1083,60 +1723,174 @@ "_id": "b82AokOiJJ94IIU2tY40I7" }, { - "__type__": "cc.Canvas", - "_name": "", + "__type__": "cc.Node", + "_name": "PointerCanvas", "_objFlags": 0, - "node": { - "__id__": 2 + "_parent": { + "__id__": 1 }, - "_enabled": true, - "__prefab": null, - "_cameraComponent": { - "__id__": 4 + "_children": [ + { + "__id__": 50 + }, + { + "__id__": 52 + }, + { + "__id__": 54 + } + ], + "_active": true, + "_components": [ + { + "__id__": 57 + }, + { + "__id__": 58 + }, + { + "__id__": 59 + }, + { + "__id__": 60 + } + ], + "_prefab": null, + "_lpos": { + "__type__": "cc.Vec3", + "x": 480, + "y": 320, + "z": 0 }, - "_alignCanvasWithScreen": true, - "_id": "12O/ljcVlEqLmVm3U2gEOQ" + "_lrot": { + "__type__": "cc.Quat", + "x": 0, + "y": 0, + "z": 0, + "w": 1 + }, + "_lscale": { + "__type__": "cc.Vec3", + "x": 1, + "y": 1, + "z": 1 + }, + "_mobility": 0, + "_layer": 2097152, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "b6TeVzboNKkauKioxhExqa" }, { - "__type__": "cc.UITransform", + "__type__": "cc.Node", + "_name": "Camera", + "_objFlags": 0, + "_parent": { + "__id__": 49 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 51 + } + ], + "_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 + }, + "_mobility": 0, + "_layer": 2097152, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "8a4tYKTUZBmY3g2mUMPD1N" + }, + { + "__type__": "cc.Camera", "_name": "", "_objFlags": 0, "node": { - "__id__": 8 + "__id__": 50 }, "_enabled": true, "__prefab": null, - "_contentSize": { - "__type__": "cc.Size", - "width": 100, - "height": 100 + "_projection": 0, + "_priority": 0, + "_fov": 45, + "_fovAxis": 0, + "_orthoHeight": 320, + "_near": 0, + "_far": 1000, + "_color": { + "__type__": "cc.Color", + "r": 0, + "g": 0, + "b": 0, + "a": 255 }, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 0.5, - "y": 0.5 + "_depth": 1, + "_stencil": 0, + "_clearFlags": 6, + "_rect": { + "__type__": "cc.Rect", + "x": 0, + "y": 0, + "width": 1, + "height": 1 }, - "_id": "c31vrpvUBEHpq/Z+sy/pOL" + "_aperture": 19, + "_shutter": 7, + "_iso": 0, + "_screenScale": 1, + "_visibility": 2097152, + "_targetTexture": null, + "_cameraType": -1, + "_trackingType": 0, + "_id": "ffMMVKCl1N/I35KprN8SIS" }, { "__type__": "cc.Node", "_name": "EffectLayer", "_objFlags": 0, "_parent": { - "__id__": 2 + "__id__": 49 }, "_children": [], "_active": true, "_components": [ { - "__id__": 40 + "__id__": 53 } ], "_prefab": null, "_lpos": { "__type__": "cc.Vec3", - "x": 0, - "y": 0, + "x": -5.684341886080802e-14, + "y": 5.684341886080802e-14, "z": 0 }, "_lrot": { @@ -1153,7 +1907,7 @@ "z": 1 }, "_mobility": 0, - "_layer": 1073741824, + "_layer": 2097152, "_euler": { "__type__": "cc.Vec3", "x": 0, @@ -1167,7 +1921,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 39 + "__id__": 52 }, "_enabled": true, "__prefab": null, @@ -1188,23 +1942,23 @@ "_name": "Pointer", "_objFlags": 0, "_parent": { - "__id__": 2 + "__id__": 49 }, "_children": [], "_active": true, "_components": [ { - "__id__": 42 + "__id__": 55 }, { - "__id__": 43 + "__id__": 56 } ], "_prefab": null, "_lpos": { "__type__": "cc.Vec3", "x": 428.31999999999994, - "y": -252.68, + "y": -252.67999999999995, "z": 0 }, "_lrot": { @@ -1216,12 +1970,12 @@ }, "_lscale": { "__type__": "cc.Vec3", - "x": 0.9999999999999999, - "y": 0.9999999999999999, + "x": 0.9999999999999997, + "y": 0.9999999999999997, "z": 1 }, "_mobility": 0, - "_layer": 1073741824, + "_layer": 2097152, "_euler": { "__type__": "cc.Vec3", "x": 180, @@ -1235,7 +1989,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 41 + "__id__": 54 }, "_enabled": true, "__prefab": null, @@ -1256,7 +2010,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 41 + "__id__": 54 }, "_enabled": true, "__prefab": null, @@ -1294,7 +2048,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 2 + "__id__": 49 }, "_enabled": true, "__prefab": null, @@ -1308,23 +2062,38 @@ "x": 0.5, "y": 0.5 }, - "_id": "d6rUX5yfhMlKoWX2bSbawx" + "_id": "19P/ge9Q9AJZ3WSS8pI6+A" + }, + { + "__type__": "cc.Canvas", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 49 + }, + "_enabled": true, + "__prefab": null, + "_cameraComponent": { + "__id__": 51 + }, + "_alignCanvasWithScreen": true, + "_id": "241z5aeANHO7brtY07P7kL" }, { "__type__": "cc.Widget", "_name": "", "_objFlags": 0, "node": { - "__id__": 2 + "__id__": 49 }, "_enabled": true, "__prefab": null, "_alignFlags": 45, "_target": null, - "_left": -5.684341886080802e-14, - "_right": -5.684341886080802e-14, - "_top": 5.684341886080802e-14, - "_bottom": 5.684341886080802e-14, + "_left": 0, + "_right": 0, + "_top": 0, + "_bottom": 0, "_horizontalCenter": 0, "_verticalCenter": 0, "_isAbsLeft": true, @@ -1337,14 +2106,14 @@ "_originalHeight": 0, "_alignMode": 2, "_lockFlags": 0, - "_id": "c5V1EV8IpMtrIvY1OE9t2u" + "_id": "7eL4iBbG1Cn5Jv2QOQZ6bR" }, { "__type__": "b017er5UONCw7VjncXWSwyi", "_name": "", "_objFlags": 0, "node": { - "__id__": 2 + "__id__": 49 }, "_enabled": true, "__prefab": null, @@ -1353,12 +2122,12 @@ "__expectedType__": "cc.Prefab" }, "effectLayer": { - "__id__": 39 + "__id__": 52 }, "pointer": { - "__id__": 41 + "__id__": 54 }, - "_id": "4fkvuG7DRBx53VBsBFwFpU" + "_id": "b3zAuOAr9I7ZB0blbdBtb5" }, { "__type__": "cc.PrefabInfo", @@ -1366,32 +2135,27 @@ "asset": null, "fileId": "14df8eed-a34b-4924-9d21-6e8e6ead64b9", "instance": null, - "targetOverrides": null, - "nestedPrefabInstanceRoots": [ - { - "__id__": 9 - } - ] + "targetOverrides": null }, { "__type__": "cc.SceneGlobals", "ambient": { - "__id__": 49 + "__id__": 63 }, "shadows": { - "__id__": 50 + "__id__": 64 }, "_skybox": { - "__id__": 51 + "__id__": 65 }, "fog": { - "__id__": 52 + "__id__": 66 }, "octree": { - "__id__": 53 + "__id__": 67 }, "lightProbeInfo": { - "__id__": 54 + "__id__": 68 }, "bakedWithStationaryMainLight": false, "bakedWithHighpLightmap": false diff --git a/assets/scripts/gameManager.ts b/assets/scripts/gameManager.ts index 5bac619..590b4ff 100644 --- a/assets/scripts/gameManager.ts +++ b/assets/scripts/gameManager.ts @@ -7,7 +7,6 @@ import { Node, Prefab, } from "cc"; -import { slime } from "./slime"; const { ccclass, property } = _decorator; enum GAME_STATE { @@ -16,7 +15,7 @@ enum GAME_STATE { END = "end", } -// 30s一局 +// 一局时长 const TOTAL_TIME = 60; @ccclass("gameManager") @@ -33,9 +32,12 @@ export class gameManager extends Component { /* 倒计时节点 */ @property(Label) time: Label = null; - /* 倒计时节点 */ + /* 画布(为了监听子元素史莱姆抛出的事件) */ @property(Canvas) canvas: Canvas = null; + /* 菜单节点 */ + @property(Node) + menu: Node = null; // 游戏状态 gameState: GAME_STATE = GAME_STATE.INIT; @@ -44,14 +46,24 @@ export class gameManager extends Component { gameScore: number = 0; // 得分 start() { - // 目前还没有开始前的UI菜单,直接开始游戏 - this.play(); + this.init(); // 进入游戏菜单 this.canvas.node.on("slime-die", this.addScore, this); } + /* 初始化菜单 */ + init() { + this.gameState = GAME_STATE.INIT; + } + /* 开始游戏 */ play() { this.gameState = GAME_STATE.PLAY; + // 隐藏菜单 + this.menu.active = false; + + // 重置游戏状态 + this.gameTime = 0; + this.gameScore = 0; // 不断生成史莱姆 this.schedule(function () { @@ -72,14 +84,13 @@ export class gameManager extends Component { /* 更新得分(外部调用) */ addScore() { - console.log("加分"); this.gameScore += 1; this.score.string = this.gameScore.toString(); } update(deltaTime: number) { if (this.gameState == GAME_STATE.PLAY) { - // 进行中,累r积时间 + // 进行中,累积时间 this.gameTime += deltaTime; this.time.string = Math.max( 0, diff --git a/assets/scripts/pointer.meta b/assets/scripts/pointer.meta new file mode 100644 index 0000000..15c870f --- /dev/null +++ b/assets/scripts/pointer.meta @@ -0,0 +1,12 @@ +{ + "ver": "1.1.0", + "importer": "directory", + "imported": true, + "uuid": "7f6207d3-f059-4835-824b-f398e9587c1e", + "files": [], + "subMetas": {}, + "userData": { + "compressionType": {}, + "isRemoteBundle": {} + } +} diff --git a/assets/scripts/explosion.ts b/assets/scripts/pointer/explosion.ts similarity index 100% rename from assets/scripts/explosion.ts rename to assets/scripts/pointer/explosion.ts diff --git a/assets/scripts/explosion.ts.meta b/assets/scripts/pointer/explosion.ts.meta similarity index 100% rename from assets/scripts/explosion.ts.meta rename to assets/scripts/pointer/explosion.ts.meta diff --git a/assets/scripts/pointerListener.ts b/assets/scripts/pointer/pointerListener.ts similarity index 93% rename from assets/scripts/pointerListener.ts rename to assets/scripts/pointer/pointerListener.ts index bff9bdc..d89bafe 100644 --- a/assets/scripts/pointerListener.ts +++ b/assets/scripts/pointer/pointerListener.ts @@ -35,6 +35,10 @@ export class pointerListener extends Component { start() { this.node.on(NodeEventType.MOUSE_MOVE, this.onMouseMove, this, true); // 捕获阶段 this.node.on(NodeEventType.MOUSE_UP, this.onMouseUp, this, true); + + // 隐藏鼠标 + let gcs = document.getElementById("GameCanvas"); + gcs && (gcs.style.cursor = "none"); } /* 鼠标移动:指针图跟着动 */ diff --git a/assets/scripts/pointerListener.ts.meta b/assets/scripts/pointer/pointerListener.ts.meta similarity index 100% rename from assets/scripts/pointerListener.ts.meta rename to assets/scripts/pointer/pointerListener.ts.meta diff --git a/assets/scripts/slime.meta b/assets/scripts/slime.meta new file mode 100644 index 0000000..ea90f5b --- /dev/null +++ b/assets/scripts/slime.meta @@ -0,0 +1,12 @@ +{ + "ver": "1.1.0", + "importer": "directory", + "imported": true, + "uuid": "7c653450-9fd3-4a34-bad8-7dc9bd59bdea", + "files": [], + "subMetas": {}, + "userData": { + "compressionType": {}, + "isRemoteBundle": {} + } +} diff --git a/assets/scripts/slime.ts b/assets/scripts/slime/slime.ts similarity index 91% rename from assets/scripts/slime.ts rename to assets/scripts/slime/slime.ts index 0cd657d..b7302ab 100644 --- a/assets/scripts/slime.ts +++ b/assets/scripts/slime/slime.ts @@ -54,16 +54,15 @@ export class slime extends Component { start() { this.anime = this.node.getComponent(Animation); - this.node.on(NodeEventType.MOUSE_UP, this.onClick, this); this.anime.on(Animation.EventType.FINISHED, this.onAnimeEnd, this); } - /* 命中:切换成死亡动画 */ - onClick() { + /* 命中:杀死史莱姆 */ + killSlime() { if (this.dead == false) { this.dead = true; - this.anime.crossFade("slime-die"); - this.node.dispatchEvent(new Event("slime-die", true)); + this.anime.crossFade("slime-die"); // 切换成死亡动画 + this.node.dispatchEvent(new Event("slime-die", true)); // 发出事件 } } diff --git a/assets/scripts/slime.ts.meta b/assets/scripts/slime/slime.ts.meta similarity index 100% rename from assets/scripts/slime.ts.meta rename to assets/scripts/slime/slime.ts.meta diff --git a/assets/scripts/slimeLayer.ts b/assets/scripts/slimeLayer.ts deleted file mode 100644 index 857a53e..0000000 --- a/assets/scripts/slimeLayer.ts +++ /dev/null @@ -1,20 +0,0 @@ -import { _decorator, Component, Node } from "cc"; -const { ccclass, property } = _decorator; - -@ccclass("slimeLayer") -export class slimeLayer extends Component { - @property(Node) - gameManager: Node = null; - - start() { - this.node.on("slime-die", this.onSlimeDie); - } - - onSlimeDie() { - console.log("接受"); - const gameManager = this.gameManager.getComponent("script"); - gameManager.addScore(); - } - - update(deltaTime: number) {} -} diff --git a/assets/scripts/slimeLayer.ts.meta b/assets/scripts/slimeLayer.ts.meta deleted file mode 100644 index 88166ea..0000000 --- a/assets/scripts/slimeLayer.ts.meta +++ /dev/null @@ -1,9 +0,0 @@ -{ - "ver": "4.0.23", - "importer": "typescript", - "imported": true, - "uuid": "77e1121c-e427-44c4-a907-57861248a914", - "files": [], - "subMetas": {}, - "userData": {} -}