diff --git a/assets/Buttons/frame.png b/assets/Buttons/frame.png new file mode 100644 index 0000000..7021d21 Binary files /dev/null and b/assets/Buttons/frame.png differ diff --git a/assets/Buttons/frame.png.meta b/assets/Buttons/frame.png.meta new file mode 100644 index 0000000..1382dbb --- /dev/null +++ b/assets/Buttons/frame.png.meta @@ -0,0 +1,34 @@ +{ + "ver": "2.3.3", + "uuid": "5081a280-3f38-463a-8e51-d89aa64a9d65", + "type": "sprite", + "wrapMode": "clamp", + "filterMode": "bilinear", + "premultiplyAlpha": false, + "genMipmaps": false, + "packable": true, + "platformSettings": {}, + "subMetas": { + "frame": { + "ver": "1.0.4", + "uuid": "e5d1a5e1-1c0e-4cf7-a537-9b884ae8641e", + "rawTextureUuid": "5081a280-3f38-463a-8e51-d89aa64a9d65", + "trimType": "auto", + "trimThreshold": 1, + "rotated": false, + "offsetX": 0.5, + "offsetY": 0.5, + "trimX": 83, + "trimY": 66, + "width": 447, + "height": 275, + "rawWidth": 612, + "rawHeight": 408, + "borderTop": 0, + "borderBottom": 0, + "borderLeft": 0, + "borderRight": 0, + "subMetas": {} + } + } +} \ No newline at end of file diff --git a/assets/Buttons/goback.png b/assets/Buttons/goback.png new file mode 100644 index 0000000..9b20ef1 Binary files /dev/null and b/assets/Buttons/goback.png differ diff --git a/assets/Buttons/goback.png.meta b/assets/Buttons/goback.png.meta new file mode 100644 index 0000000..ea5d835 --- /dev/null +++ b/assets/Buttons/goback.png.meta @@ -0,0 +1,34 @@ +{ + "ver": "2.3.3", + "uuid": "c1c1e95d-6a5a-4f63-8272-3d0e3bbab123", + "type": "sprite", + "wrapMode": "clamp", + "filterMode": "bilinear", + "premultiplyAlpha": false, + "genMipmaps": false, + "packable": true, + "platformSettings": {}, + "subMetas": { + "goback": { + "ver": "1.0.4", + "uuid": "98e2ff50-ce1b-4b6c-bde1-d9517b6be722", + "rawTextureUuid": "c1c1e95d-6a5a-4f63-8272-3d0e3bbab123", + "trimType": "auto", + "trimThreshold": 1, + "rotated": false, + "offsetX": 0, + "offsetY": 0.5, + "trimX": 82, + "trimY": 79, + "width": 336, + "height": 341, + "rawWidth": 500, + "rawHeight": 500, + "borderTop": 0, + "borderBottom": 0, + "borderLeft": 0, + "borderRight": 0, + "subMetas": {} + } + } +} \ No newline at end of file diff --git a/assets/Buttons/settings-modal.png b/assets/Buttons/settings-modal.png new file mode 100644 index 0000000..64aa8ff Binary files /dev/null and b/assets/Buttons/settings-modal.png differ diff --git a/assets/Buttons/settings-modal.png.meta b/assets/Buttons/settings-modal.png.meta new file mode 100644 index 0000000..56b46c0 --- /dev/null +++ b/assets/Buttons/settings-modal.png.meta @@ -0,0 +1,34 @@ +{ + "ver": "2.3.3", + "uuid": "95bb0bf8-78d3-4358-85dd-fe8463e2af39", + "type": "sprite", + "wrapMode": "clamp", + "filterMode": "bilinear", + "premultiplyAlpha": false, + "genMipmaps": false, + "packable": true, + "platformSettings": {}, + "subMetas": { + "settings-modal": { + "ver": "1.0.4", + "uuid": "f06c442e-7357-4371-b505-c0e86e22aef5", + "rawTextureUuid": "95bb0bf8-78d3-4358-85dd-fe8463e2af39", + "trimType": "auto", + "trimThreshold": 1, + "rotated": false, + "offsetX": 2, + "offsetY": 17, + "trimX": 31, + "trimY": 68, + "width": 350, + "height": 442, + "rawWidth": 408, + "rawHeight": 612, + "borderTop": 0, + "borderBottom": 0, + "borderLeft": 0, + "borderRight": 0, + "subMetas": {} + } + } +} \ No newline at end of file diff --git a/assets/Buttons/settings.png b/assets/Buttons/settings.png new file mode 100644 index 0000000..b2877da Binary files /dev/null and b/assets/Buttons/settings.png differ diff --git a/assets/Buttons/settings.png.meta b/assets/Buttons/settings.png.meta new file mode 100644 index 0000000..7293876 --- /dev/null +++ b/assets/Buttons/settings.png.meta @@ -0,0 +1,34 @@ +{ + "ver": "2.3.3", + "uuid": "b4220f86-5134-435a-b1d9-07e973964587", + "type": "sprite", + "wrapMode": "clamp", + "filterMode": "bilinear", + "premultiplyAlpha": false, + "genMipmaps": false, + "packable": true, + "platformSettings": {}, + "subMetas": { + "settings": { + "ver": "1.0.4", + "uuid": "137a4fa3-a5b5-4d35-8ca0-0aef23ca8a59", + "rawTextureUuid": "b4220f86-5134-435a-b1d9-07e973964587", + "trimType": "auto", + "trimThreshold": 1, + "rotated": false, + "offsetX": -0.5, + "offsetY": -7.5, + "trimX": 56, + "trimY": 68, + "width": 387, + "height": 379, + "rawWidth": 500, + "rawHeight": 500, + "borderTop": 0, + "borderBottom": 0, + "borderLeft": 0, + "borderRight": 0, + "subMetas": {} + } + } +} \ No newline at end of file diff --git a/assets/Level.fire b/assets/Level.fire index 2a1f179..6296ec4 100644 --- a/assets/Level.fire +++ b/assets/Level.fire @@ -72,16 +72,19 @@ }, { "__id__": 23 + }, + { + "__id__": 29 } ], "_active": true, "_level": 0, "_components": [ { - "__id__": 29 + "__id__": 34 }, { - "__id__": 30 + "__id__": 35 } ], "_prefab": null, @@ -165,7 +168,7 @@ "__type__": "cc.Vec3", "x": 0, "y": 0, - "z": 540.3904070535626 + "z": 782.0090764356186 }, "_scale": { "__type__": "cc.Vec3", @@ -1248,6 +1251,194 @@ "_enabled": true, "_id": "66rwOafM5EjKiP+oFLy0Hv" }, + { + "__type__": "cc.Node", + "_name": "goback", + "_objFlags": 0, + "_parent": { + "__id__": 2 + }, + "_children": [], + "_active": true, + "_level": 1, + "_components": [ + { + "__id__": 30 + }, + { + "__id__": 31 + }, + { + "__id__": 32 + } + ], + "_prefab": null, + "_opacity": 255, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 50, + "height": 50 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_position": { + "__type__": "cc.Vec3", + "x": -400.979, + "y": 495.623, + "z": 0 + }, + "_scale": { + "__type__": "cc.Vec3", + "x": 1, + "y": 1, + "z": 1 + }, + "_eulerAngles": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_skewX": 0, + "_skewY": 0, + "_is3DNode": false, + "groupIndex": 0, + "_id": "a5xZBpnnpCjasoib1HSFrG" + }, + { + "__type__": "cc.Sprite", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 29 + }, + "_enabled": true, + "_materials": [ + { + "__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432" + } + ], + "_srcBlendFactor": 770, + "_dstBlendFactor": 771, + "_spriteFrame": { + "__uuid__": "98e2ff50-ce1b-4b6c-bde1-d9517b6be722" + }, + "_type": 0, + "_sizeMode": 0, + "_fillType": 0, + "_fillCenter": { + "__type__": "cc.Vec2", + "x": 0, + "y": 0 + }, + "_fillStart": 0, + "_fillRange": 0, + "_isTrimmedMode": true, + "_atlas": null, + "_id": "4bJcp1y3hIEIWDUY5w066v" + }, + { + "__type__": "3a2abJhRaJFyrM9SBg5rWtB", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 29 + }, + "_enabled": true, + "_id": "ff6bUxkLpPSp+uI5zuwGci" + }, + { + "__type__": "cc.Button", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 29 + }, + "_enabled": true, + "duration": 0.1, + "zoomScale": 1.2, + "clickEvents": [ + { + "__id__": 33 + } + ], + "_N$interactable": true, + "_N$enableAutoGrayEffect": false, + "_N$transition": 0, + "transition": 0, + "_N$normalColor": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_N$pressedColor": { + "__type__": "cc.Color", + "r": 211, + "g": 211, + "b": 211, + "a": 255 + }, + "pressedColor": { + "__type__": "cc.Color", + "r": 211, + "g": 211, + "b": 211, + "a": 255 + }, + "_N$hoverColor": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "hoverColor": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_N$disabledColor": { + "__type__": "cc.Color", + "r": 124, + "g": 124, + "b": 124, + "a": 255 + }, + "_N$normalSprite": null, + "_N$pressedSprite": null, + "pressedSprite": null, + "_N$hoverSprite": null, + "hoverSprite": null, + "_N$disabledSprite": null, + "_N$target": { + "__id__": 29 + }, + "_id": "5bmLmjh5pM0Lv/WwOCqURq" + }, + { + "__type__": "cc.ClickEvent", + "target": { + "__id__": 29 + }, + "component": "", + "_componentId": "3a2abJhRaJFyrM9SBg5rWtB", + "handler": "backToMenu", + "customEventData": "" + }, { "__type__": "cc.Canvas", "_name": "", diff --git a/assets/Menu.fire b/assets/Menu.fire index 55eb88e..d961df8 100644 --- a/assets/Menu.fire +++ b/assets/Menu.fire @@ -63,19 +63,25 @@ }, { "__id__": 5 + }, + { + "__id__": 11 + }, + { + "__id__": 17 } ], "_active": true, "_level": 1, "_components": [ { - "__id__": 11 + "__id__": 22 }, { - "__id__": 12 + "__id__": 23 }, { - "__id__": 13 + "__id__": 24 } ], "_prefab": null, @@ -159,7 +165,7 @@ "__type__": "cc.Vec3", "x": 0, "y": 0, - "z": 540.3998519614897 + "z": 782.0090764356186 }, "_scale": { "__type__": "cc.Vec3", @@ -471,6 +477,391 @@ "_enabled": true, "_id": "b1l7jFcrZGValOGBcgRpBB" }, + { + "__type__": "cc.Node", + "_name": "settings", + "_objFlags": 0, + "_parent": { + "__id__": 2 + }, + "_children": [], + "_active": true, + "_level": 2, + "_components": [ + { + "__id__": 12 + }, + { + "__id__": 13 + }, + { + "__id__": 14 + }, + { + "__id__": 16 + } + ], + "_prefab": null, + "_opacity": 255, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 100, + "height": 100 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_position": { + "__type__": "cc.Vec3", + "x": -380, + "y": 500, + "z": 0 + }, + "_scale": { + "__type__": "cc.Vec3", + "x": 0.7, + "y": 0.7, + "z": 1 + }, + "_eulerAngles": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_skewX": 0, + "_skewY": 0, + "_is3DNode": false, + "groupIndex": 0, + "_id": "35D9sfXk1B/bXTnd0UD26Q" + }, + { + "__type__": "cc.Sprite", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 11 + }, + "_enabled": true, + "_materials": [ + { + "__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432" + } + ], + "_srcBlendFactor": 770, + "_dstBlendFactor": 771, + "_spriteFrame": { + "__uuid__": "137a4fa3-a5b5-4d35-8ca0-0aef23ca8a59" + }, + "_type": 0, + "_sizeMode": 0, + "_fillType": 0, + "_fillCenter": { + "__type__": "cc.Vec2", + "x": 0, + "y": 0 + }, + "_fillStart": 0, + "_fillRange": 0, + "_isTrimmedMode": true, + "_atlas": null, + "_id": "32T8+u0j9LE4Qliu4SvW1L" + }, + { + "__type__": "3a2abJhRaJFyrM9SBg5rWtB", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 11 + }, + "_enabled": true, + "_id": "d2fPfqTpdLt5xGmp8DKfYU" + }, + { + "__type__": "cc.Button", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 11 + }, + "_enabled": true, + "duration": 0.1, + "zoomScale": 1.2, + "clickEvents": [ + { + "__id__": 15 + } + ], + "_N$interactable": true, + "_N$enableAutoGrayEffect": false, + "_N$transition": 0, + "transition": 0, + "_N$normalColor": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_N$pressedColor": { + "__type__": "cc.Color", + "r": 211, + "g": 211, + "b": 211, + "a": 255 + }, + "pressedColor": { + "__type__": "cc.Color", + "r": 211, + "g": 211, + "b": 211, + "a": 255 + }, + "_N$hoverColor": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "hoverColor": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_N$disabledColor": { + "__type__": "cc.Color", + "r": 124, + "g": 124, + "b": 124, + "a": 255 + }, + "_N$normalSprite": null, + "_N$pressedSprite": null, + "pressedSprite": null, + "_N$hoverSprite": null, + "hoverSprite": null, + "_N$disabledSprite": null, + "_N$target": null, + "_id": "71QrqFThBM2oFVHDHtcICv" + }, + { + "__type__": "cc.ClickEvent", + "target": { + "__id__": 11 + }, + "component": "", + "_componentId": "3a2abJhRaJFyrM9SBg5rWtB", + "handler": "showSettings", + "customEventData": "" + }, + { + "__type__": "3a2abJhRaJFyrM9SBg5rWtB", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 11 + }, + "_enabled": true, + "_id": "52lnLNPYlDFJiujnKqDoa9" + }, + { + "__type__": "cc.Node", + "_name": "closeTheGame", + "_objFlags": 0, + "_parent": { + "__id__": 2 + }, + "_children": [], + "_active": true, + "_level": 2, + "_components": [ + { + "__id__": 18 + }, + { + "__id__": 19 + }, + { + "__id__": 21 + } + ], + "_prefab": null, + "_opacity": 255, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 100, + "height": 100 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_position": { + "__type__": "cc.Vec3", + "x": 400, + "y": 500, + "z": 0 + }, + "_scale": { + "__type__": "cc.Vec3", + "x": 0.6, + "y": 0.6, + "z": 1 + }, + "_eulerAngles": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_skewX": 0, + "_skewY": 0, + "_is3DNode": false, + "groupIndex": 0, + "_id": "75o6Nt1g5KBoTpCSkhzL6a" + }, + { + "__type__": "cc.Sprite", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 17 + }, + "_enabled": true, + "_materials": [ + { + "__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432" + } + ], + "_srcBlendFactor": 770, + "_dstBlendFactor": 771, + "_spriteFrame": { + "__uuid__": "181fdba8-d507-4cdd-801d-1929957e02e6" + }, + "_type": 0, + "_sizeMode": 0, + "_fillType": 0, + "_fillCenter": { + "__type__": "cc.Vec2", + "x": 0, + "y": 0 + }, + "_fillStart": 0, + "_fillRange": 0, + "_isTrimmedMode": true, + "_atlas": null, + "_id": "809ak7JrtBppxAxjhRLbgV" + }, + { + "__type__": "cc.Button", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 17 + }, + "_enabled": true, + "duration": 0.1, + "zoomScale": 1.2, + "clickEvents": [ + { + "__id__": 20 + } + ], + "_N$interactable": true, + "_N$enableAutoGrayEffect": false, + "_N$transition": 0, + "transition": 0, + "_N$normalColor": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_N$pressedColor": { + "__type__": "cc.Color", + "r": 211, + "g": 211, + "b": 211, + "a": 255 + }, + "pressedColor": { + "__type__": "cc.Color", + "r": 211, + "g": 211, + "b": 211, + "a": 255 + }, + "_N$hoverColor": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "hoverColor": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_N$disabledColor": { + "__type__": "cc.Color", + "r": 124, + "g": 124, + "b": 124, + "a": 255 + }, + "_N$normalSprite": null, + "_N$pressedSprite": null, + "pressedSprite": null, + "_N$hoverSprite": null, + "hoverSprite": null, + "_N$disabledSprite": null, + "_N$target": null, + "_id": "96gTxmFx1GDr38ty/9OIdD" + }, + { + "__type__": "cc.ClickEvent", + "target": { + "__id__": 17 + }, + "component": "", + "_componentId": "3a2abJhRaJFyrM9SBg5rWtB", + "handler": "killGame", + "customEventData": "" + }, + { + "__type__": "3a2abJhRaJFyrM9SBg5rWtB", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 17 + }, + "_enabled": true, + "_id": "51E8zpuHRFWLDHsTbGhIA+" + }, { "__type__": "cc.Canvas", "_name": "", diff --git a/assets/Scripts/GameData.ts b/assets/Scripts/GameData.ts index 97bd3e5..a234ff8 100644 --- a/assets/Scripts/GameData.ts +++ b/assets/Scripts/GameData.ts @@ -18,6 +18,9 @@ export default class GameData extends cc.Component { public selectedLevel: number = 1; public score: number = 0; + public soundEnabled: boolean = true; + public musicEnabled: boolean = true; + public static get instance(): GameData { if (!this._instance) { this._instance = new GameData(); @@ -25,6 +28,14 @@ export default class GameData extends cc.Component { return this._instance; } + public setSoundEnabled(enabled: boolean) { + this.soundEnabled = enabled; + } + + public setMusicEnabled(enabled: boolean) { + this.musicEnabled = enabled; + } + public setScore(score: number) { this.score = score; } diff --git a/assets/Scripts/Settings.ts b/assets/Scripts/Settings.ts new file mode 100644 index 0000000..7c3abd8 --- /dev/null +++ b/assets/Scripts/Settings.ts @@ -0,0 +1,59 @@ +// Learn TypeScript: +// - [Chinese] https://docs.cocos.com/creator/manual/zh/scripting/typescript.html +// - [English] http://www.cocos2d-x.org/docs/creator/manual/en/scripting/typescript.html +// Learn Attribute: +// - [Chinese] https://docs.cocos.com/creator/manual/zh/scripting/reference/attributes.html +// - [English] http://www.cocos2d-x.org/docs/creator/manual/en/scripting/reference/attributes.html +// Learn life-cycle callbacks: +// - [Chinese] https://docs.cocos.com/creator/manual/zh/scripting/life-cycle-callbacks.html +// - [English] http://www.cocos2d-x.org/docs/creator/manual/en/scripting/life-cycle-callbacks.html + +const {ccclass, property} = cc._decorator; +import SoundManager from "./SoundsManager"; +import GameData from "./GameData"; + +@ccclass +export default class NewClass extends cc.Component { + + @property(cc.Label) + soundLabel: cc.Label = null; + + @property(cc.Label) + musicLabel: cc.Label = null; + + controlSound() { + SoundManager.instance.playEffect('click'); + if(GameData.instance.soundEnabled) { + this.soundLabel.string = 'OFF'; + } else { + this.soundLabel.string = 'ON'; + } + GameData.instance.setSoundEnabled(!GameData.instance.soundEnabled); + } + + controlMusic() { + SoundManager.instance.playEffect('click'); + if(GameData.instance.musicEnabled) { + this.musicLabel.string = 'OFF'; + GameData.instance.setMusicEnabled(!GameData.instance.musicEnabled); + SoundManager.instance.stopMusic(); + } else { + this.musicLabel.string = 'ON'; + GameData.instance.setMusicEnabled(!GameData.instance.musicEnabled); + SoundManager.instance.playMusic('Judgement', true); + } + } + + onLoad() { + if(GameData.instance.soundEnabled) { + this.soundLabel.string = 'ON'; + } else { + this.soundLabel.string = 'OFF'; + } + if(GameData.instance.musicEnabled) { + this.musicLabel.string = 'ON'; + } else { + this.musicLabel.string = 'OFF'; + } + } +} diff --git a/assets/Scripts/Settings.ts.meta b/assets/Scripts/Settings.ts.meta new file mode 100644 index 0000000..3c4baef --- /dev/null +++ b/assets/Scripts/Settings.ts.meta @@ -0,0 +1,9 @@ +{ + "ver": "1.0.5", + "uuid": "300f0ae2-df3d-4140-9830-e23556d238dc", + "isPlugin": false, + "loadPluginInWeb": true, + "loadPluginInNative": true, + "loadPluginInEditor": false, + "subMetas": {} +} \ No newline at end of file diff --git a/assets/Scripts/SoundsManager.ts b/assets/Scripts/SoundsManager.ts index de7c89c..3e0009b 100644 --- a/assets/Scripts/SoundsManager.ts +++ b/assets/Scripts/SoundsManager.ts @@ -8,6 +8,8 @@ // - [Chinese] https://docs.cocos.com/creator/manual/zh/scripting/life-cycle-callbacks.html // - [English] http://www.cocos2d-x.org/docs/creator/manual/en/scripting/life-cycle-callbacks.html +import GameData from "./GameData"; + const {ccclass, property} = cc._decorator; @ccclass @@ -45,6 +47,9 @@ export default class SoundManager extends cc.Component { // ✅ Play short effects (clicks, shots, explosions) playEffect(name: string, loop: boolean = false) { + if(!GameData.instance.soundEnabled) { + return; + } const clip = this.sounds[name]; if (clip) { cc.audioEngine.setEffectsVolume(0.2); @@ -56,6 +61,9 @@ export default class SoundManager extends cc.Component { // ✅ Play/Stop background music playMusic(name: string, loop: boolean = true) { + if(!GameData.instance.musicEnabled) { + return; + } const clip = this.sounds[name]; if (clip) { if (this.musicId !== -1) { diff --git a/assets/Scripts/SwitchScreens.ts b/assets/Scripts/SwitchScreens.ts index 014e4d5..401f813 100644 --- a/assets/Scripts/SwitchScreens.ts +++ b/assets/Scripts/SwitchScreens.ts @@ -48,4 +48,25 @@ export default class MenuScreen extends cc.Component { SoundManager.instance.stopMusic(); cc.director.loadScene('Menu'); } + + killGame() { + GameData.instance.setScore(0); + SoundManager.instance.playEffect('click'); + this.scheduleOnce(() => { + SoundManager.instance.stopMusic(); + cc.game.end(); + }, 0.25); + } + + backToMenu() { + SoundManager.instance.playEffect('click'); + cc.director.loadScene('Menu'); + } + + showSettings() { + SoundManager.instance.playEffect('click'); + cc.director.preloadScene('Settings', () => { + cc.director.loadScene('Settings'); + }); + } } diff --git a/assets/Settings.fire b/assets/Settings.fire new file mode 100644 index 0000000..b141385 --- /dev/null +++ b/assets/Settings.fire @@ -0,0 +1,1092 @@ +[ + { + "__type__": "cc.SceneAsset", + "_name": "", + "_objFlags": 0, + "_native": "", + "scene": { + "__id__": 1 + } + }, + { + "__type__": "cc.Scene", + "_objFlags": 0, + "_parent": null, + "_children": [ + { + "__id__": 2 + } + ], + "_active": true, + "_level": 0, + "_components": [], + "_prefab": null, + "_opacity": 255, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 0, + "height": 0 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0, + "y": 0 + }, + "_scale": { + "__type__": "cc.Vec3", + "x": 1, + "y": 1, + "z": 1 + }, + "_is3DNode": true, + "groupIndex": 0, + "autoReleaseAssets": false, + "_id": "6dfa2e82-6ef5-4231-bb1f-7ad1d2ec5cce" + }, + { + "__type__": "cc.Node", + "_name": "Canvas", + "_objFlags": 0, + "_parent": { + "__id__": 1 + }, + "_children": [ + { + "__id__": 3 + }, + { + "__id__": 5 + }, + { + "__id__": 7 + }, + { + "__id__": 11 + }, + { + "__id__": 20 + } + ], + "_active": true, + "_level": 0, + "_components": [ + { + "__id__": 25 + }, + { + "__id__": 26 + } + ], + "_prefab": null, + "_opacity": 255, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 960, + "height": 640 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_position": { + "__type__": "cc.Vec3", + "x": 480, + "y": 320, + "z": 0 + }, + "_scale": { + "__type__": "cc.Vec3", + "x": 1, + "y": 1.5, + "z": 1 + }, + "_eulerAngles": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_skewX": 0, + "_skewY": 0, + "_is3DNode": false, + "groupIndex": 0, + "_id": "2ei2B5xndP0IK+PdaXJsDp" + }, + { + "__type__": "cc.Node", + "_name": "Main Camera", + "_objFlags": 0, + "_parent": { + "__id__": 2 + }, + "_children": [], + "_active": true, + "_level": 1, + "_components": [ + { + "__id__": 4 + } + ], + "_prefab": null, + "_opacity": 255, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 0, + "height": 0 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_position": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 782.0090764356186 + }, + "_scale": { + "__type__": "cc.Vec3", + "x": 1, + "y": 1, + "z": 1 + }, + "_eulerAngles": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_skewX": 0, + "_skewY": 0, + "_is3DNode": false, + "groupIndex": 0, + "_id": "40YSNopeNBq79lNQJKzz61" + }, + { + "__type__": "cc.Camera", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 3 + }, + "_enabled": true, + "_cullingMask": 4294967295, + "_clearFlags": 7, + "_backgroundColor": { + "__type__": "cc.Color", + "r": 0, + "g": 0, + "b": 0, + "a": 255 + }, + "_depth": -1, + "_zoomRatio": 1, + "_targetTexture": null, + "_fov": 60, + "_orthoSize": 10, + "_nearClip": 1, + "_farClip": 4096, + "_ortho": true, + "_rect": { + "__type__": "cc.Rect", + "x": 0, + "y": 0, + "width": 1, + "height": 1 + }, + "_renderStages": 1, + "_id": "33i6yYWJVMKL/k5yibSDsE" + }, + { + "__type__": "cc.Node", + "_name": "settings-modal", + "_objFlags": 0, + "_parent": { + "__id__": 2 + }, + "_children": [], + "_active": true, + "_level": 1, + "_components": [ + { + "__id__": 6 + } + ], + "_prefab": null, + "_opacity": 255, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 500, + "height": 400 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_position": { + "__type__": "cc.Vec3", + "x": -1.254, + "y": 23.817, + "z": 0 + }, + "_scale": { + "__type__": "cc.Vec3", + "x": 1, + "y": 1, + "z": 1 + }, + "_eulerAngles": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_skewX": 0, + "_skewY": 0, + "_is3DNode": false, + "groupIndex": 0, + "_id": "555fkG90ZMq4jum639ZvVN" + }, + { + "__type__": "cc.Sprite", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 5 + }, + "_enabled": true, + "_materials": [ + { + "__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432" + } + ], + "_srcBlendFactor": 770, + "_dstBlendFactor": 771, + "_spriteFrame": { + "__uuid__": "f06c442e-7357-4371-b505-c0e86e22aef5" + }, + "_type": 0, + "_sizeMode": 0, + "_fillType": 0, + "_fillCenter": { + "__type__": "cc.Vec2", + "x": 0, + "y": 0 + }, + "_fillStart": 0, + "_fillRange": 0, + "_isTrimmedMode": true, + "_atlas": null, + "_id": "23L9oEKx1D/oKCx2jmA7Dz" + }, + { + "__type__": "cc.Node", + "_name": "MenuButton", + "_objFlags": 0, + "_parent": { + "__id__": 2 + }, + "_children": [], + "_active": true, + "_level": 1, + "_components": [ + { + "__id__": 8 + }, + { + "__id__": 10 + } + ], + "_prefab": null, + "_opacity": 255, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 100, + "height": 40 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_position": { + "__type__": "cc.Vec3", + "x": -4, + "y": -116.666, + "z": 0 + }, + "_scale": { + "__type__": "cc.Vec3", + "x": 3.169, + "y": 1.643, + "z": 1.048 + }, + "_eulerAngles": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_skewX": 0, + "_skewY": 0, + "_is3DNode": false, + "groupIndex": 0, + "_id": "d4//6pDLJDGZynpMBSZkVf" + }, + { + "__type__": "cc.Button", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 7 + }, + "_enabled": true, + "duration": 0.1, + "zoomScale": 1.2, + "clickEvents": [ + { + "__id__": 9 + } + ], + "_N$interactable": true, + "_N$enableAutoGrayEffect": false, + "_N$transition": 2, + "transition": 2, + "_N$normalColor": { + "__type__": "cc.Color", + "r": 230, + "g": 230, + "b": 230, + "a": 255 + }, + "_N$pressedColor": { + "__type__": "cc.Color", + "r": 200, + "g": 200, + "b": 200, + "a": 255 + }, + "pressedColor": { + "__type__": "cc.Color", + "r": 200, + "g": 200, + "b": 200, + "a": 255 + }, + "_N$hoverColor": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "hoverColor": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_N$disabledColor": { + "__type__": "cc.Color", + "r": 120, + "g": 120, + "b": 120, + "a": 200 + }, + "_N$normalSprite": { + "__uuid__": "f0048c10-f03e-4c97-b9d3-3506e1d58952" + }, + "_N$pressedSprite": { + "__uuid__": "e9ec654c-97a2-4787-9325-e6a10375219a" + }, + "pressedSprite": { + "__uuid__": "e9ec654c-97a2-4787-9325-e6a10375219a" + }, + "_N$hoverSprite": { + "__uuid__": "f0048c10-f03e-4c97-b9d3-3506e1d58952" + }, + "hoverSprite": { + "__uuid__": "f0048c10-f03e-4c97-b9d3-3506e1d58952" + }, + "_N$disabledSprite": { + "__uuid__": "29158224-f8dd-4661-a796-1ffab537140e" + }, + "_N$target": null, + "_id": "1aTYlOyQRDIJH3botfyWUI" + }, + { + "__type__": "cc.ClickEvent", + "target": { + "__id__": 7 + }, + "component": "", + "_componentId": "3a2abJhRaJFyrM9SBg5rWtB", + "handler": "closeGame", + "customEventData": "" + }, + { + "__type__": "3a2abJhRaJFyrM9SBg5rWtB", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 7 + }, + "_enabled": true, + "_id": "86k01cZhFKObT1hFyWvGqI" + }, + { + "__type__": "cc.Node", + "_name": "sounds", + "_objFlags": 0, + "_parent": { + "__id__": 2 + }, + "_children": [ + { + "__id__": 12 + } + ], + "_active": true, + "_level": 1, + "_components": [ + { + "__id__": 14 + }, + { + "__id__": 15 + }, + { + "__id__": 17 + } + ], + "_prefab": null, + "_opacity": 255, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 100, + "height": 40 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_position": { + "__type__": "cc.Vec3", + "x": 100, + "y": 33, + "z": 0 + }, + "_scale": { + "__type__": "cc.Vec3", + "x": 1, + "y": 1, + "z": 1 + }, + "_eulerAngles": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_skewX": 0, + "_skewY": 0, + "_is3DNode": false, + "groupIndex": 0, + "_id": "7aoiYNbKlOX6eshkD/WVbP" + }, + { + "__type__": "cc.Node", + "_name": "soundsLabel", + "_objFlags": 0, + "_parent": { + "__id__": 11 + }, + "_children": [], + "_active": true, + "_level": 2, + "_components": [ + { + "__id__": 13 + } + ], + "_prefab": null, + "_opacity": 255, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 40.67, + "height": 26.67 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_position": { + "__type__": "cc.Vec3", + "x": 0, + "y": 2, + "z": 0 + }, + "_scale": { + "__type__": "cc.Vec3", + "x": 1, + "y": 1, + "z": 1 + }, + "_eulerAngles": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_skewX": 0, + "_skewY": 0, + "_is3DNode": false, + "groupIndex": 0, + "_id": "3aoNRQE5JBdbhOPnaSGAMQ" + }, + { + "__type__": "cc.Label", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 12 + }, + "_enabled": true, + "_materials": [ + { + "__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432" + } + ], + "_useOriginalSize": false, + "_string": "ON", + "_N$string": "ON", + "_fontSize": 24, + "_lineHeight": 40, + "_enableWrapText": true, + "_N$file": { + "__uuid__": "ed6e9c58-b82d-466a-abfd-b916a22e224c" + }, + "_isSystemFontUsed": false, + "_isUseVerticalKerning": true, + "_verticalKerning": null, + "_spacingX": 0, + "_batchAsBitmap": false, + "_N$horizontalAlign": 1, + "_N$verticalAlign": 1, + "_N$fontFamily": "Arial", + "_N$overflow": 0, + "_N$cacheMode": 0, + "_id": "61h3rAZjNPBIkRDfc3TMMP" + }, + { + "__type__": "cc.Sprite", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 11 + }, + "_enabled": true, + "_materials": [ + { + "__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432" + } + ], + "_srcBlendFactor": 770, + "_dstBlendFactor": 771, + "_spriteFrame": { + "__uuid__": "e5d1a5e1-1c0e-4cf7-a537-9b884ae8641e" + }, + "_type": 0, + "_sizeMode": 0, + "_fillType": 0, + "_fillCenter": { + "__type__": "cc.Vec2", + "x": 0, + "y": 0 + }, + "_fillStart": 0, + "_fillRange": 0, + "_isTrimmedMode": true, + "_atlas": null, + "_id": "efBaQkhPdDyYHhZkSzpISY" + }, + { + "__type__": "cc.Button", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 11 + }, + "_enabled": true, + "duration": 0.1, + "zoomScale": 1.2, + "clickEvents": [ + { + "__id__": 16 + } + ], + "_N$interactable": true, + "_N$enableAutoGrayEffect": false, + "_N$transition": 0, + "transition": 0, + "_N$normalColor": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_N$pressedColor": { + "__type__": "cc.Color", + "r": 211, + "g": 211, + "b": 211, + "a": 255 + }, + "pressedColor": { + "__type__": "cc.Color", + "r": 211, + "g": 211, + "b": 211, + "a": 255 + }, + "_N$hoverColor": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "hoverColor": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_N$disabledColor": { + "__type__": "cc.Color", + "r": 124, + "g": 124, + "b": 124, + "a": 255 + }, + "_N$normalSprite": null, + "_N$pressedSprite": null, + "pressedSprite": null, + "_N$hoverSprite": null, + "hoverSprite": null, + "_N$disabledSprite": null, + "_N$target": { + "__id__": 11 + }, + "_id": "13SW8ZDzRGhImDpbNeRFpU" + }, + { + "__type__": "cc.ClickEvent", + "target": { + "__id__": 11 + }, + "component": "", + "_componentId": "300f0ri3z1BQJgw4jVW0jjc", + "handler": "controlSound", + "customEventData": "" + }, + { + "__type__": "300f0ri3z1BQJgw4jVW0jjc", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 11 + }, + "_enabled": true, + "soundLabel": { + "__id__": 13 + }, + "musicLabel": { + "__id__": 18 + }, + "_id": "d66Zh4uP9AppzFcYySge8l" + }, + { + "__type__": "cc.Label", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 19 + }, + "_enabled": true, + "_materials": [ + { + "__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432" + } + ], + "_useOriginalSize": false, + "_string": "ON", + "_N$string": "ON", + "_fontSize": 24, + "_lineHeight": 40, + "_enableWrapText": true, + "_N$file": { + "__uuid__": "ed6e9c58-b82d-466a-abfd-b916a22e224c" + }, + "_isSystemFontUsed": false, + "_isUseVerticalKerning": true, + "_verticalKerning": null, + "_spacingX": 0, + "_batchAsBitmap": false, + "_N$horizontalAlign": 1, + "_N$verticalAlign": 1, + "_N$fontFamily": "Arial", + "_N$overflow": 0, + "_N$cacheMode": 0, + "_id": "71s/t4gMlJZ4hDJe28X+kj" + }, + { + "__type__": "cc.Node", + "_name": "musicLabel", + "_objFlags": 0, + "_parent": { + "__id__": 20 + }, + "_children": [], + "_active": true, + "_level": 2, + "_components": [ + { + "__id__": 18 + } + ], + "_prefab": null, + "_opacity": 255, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 40.67, + "height": 26.67 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_position": { + "__type__": "cc.Vec3", + "x": 0, + "y": 2, + "z": 0 + }, + "_scale": { + "__type__": "cc.Vec3", + "x": 1, + "y": 1, + "z": 1 + }, + "_eulerAngles": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_skewX": 0, + "_skewY": 0, + "_is3DNode": false, + "groupIndex": 0, + "_id": "aaiBjk3AdMIbchX+8+C0Ma" + }, + { + "__type__": "cc.Node", + "_name": "music", + "_objFlags": 0, + "_parent": { + "__id__": 2 + }, + "_children": [ + { + "__id__": 19 + } + ], + "_active": true, + "_level": 1, + "_components": [ + { + "__id__": 21 + }, + { + "__id__": 22 + }, + { + "__id__": 24 + } + ], + "_prefab": null, + "_opacity": 255, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 100, + "height": 40 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_position": { + "__type__": "cc.Vec3", + "x": 100, + "y": -30, + "z": 0 + }, + "_scale": { + "__type__": "cc.Vec3", + "x": 1, + "y": 1, + "z": 1 + }, + "_eulerAngles": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_skewX": 0, + "_skewY": 0, + "_is3DNode": false, + "groupIndex": 0, + "_id": "1dPtUifk1CAYarTHsv2sEl" + }, + { + "__type__": "cc.Sprite", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 20 + }, + "_enabled": true, + "_materials": [ + { + "__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432" + } + ], + "_srcBlendFactor": 770, + "_dstBlendFactor": 771, + "_spriteFrame": { + "__uuid__": "e5d1a5e1-1c0e-4cf7-a537-9b884ae8641e" + }, + "_type": 0, + "_sizeMode": 0, + "_fillType": 0, + "_fillCenter": { + "__type__": "cc.Vec2", + "x": 0, + "y": 0 + }, + "_fillStart": 0, + "_fillRange": 0, + "_isTrimmedMode": true, + "_atlas": null, + "_id": "46ZWCPlhVK1Zq4Ej7Kg4bk" + }, + { + "__type__": "cc.Button", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 20 + }, + "_enabled": true, + "duration": 0.1, + "zoomScale": 1.2, + "clickEvents": [ + { + "__id__": 23 + } + ], + "_N$interactable": true, + "_N$enableAutoGrayEffect": false, + "_N$transition": 0, + "transition": 0, + "_N$normalColor": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_N$pressedColor": { + "__type__": "cc.Color", + "r": 211, + "g": 211, + "b": 211, + "a": 255 + }, + "pressedColor": { + "__type__": "cc.Color", + "r": 211, + "g": 211, + "b": 211, + "a": 255 + }, + "_N$hoverColor": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "hoverColor": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_N$disabledColor": { + "__type__": "cc.Color", + "r": 124, + "g": 124, + "b": 124, + "a": 255 + }, + "_N$normalSprite": null, + "_N$pressedSprite": null, + "pressedSprite": null, + "_N$hoverSprite": null, + "hoverSprite": null, + "_N$disabledSprite": null, + "_N$target": { + "__id__": 20 + }, + "_id": "5aym/2LXNOBr8SB+/FFJeg" + }, + { + "__type__": "cc.ClickEvent", + "target": { + "__id__": 20 + }, + "component": "", + "_componentId": "300f0ri3z1BQJgw4jVW0jjc", + "handler": "controlMusic", + "customEventData": "" + }, + { + "__type__": "300f0ri3z1BQJgw4jVW0jjc", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 20 + }, + "_enabled": true, + "soundLabel": { + "__id__": 13 + }, + "musicLabel": { + "__id__": 18 + }, + "_id": "d7vv77zttCOaym3CCHqjCh" + }, + { + "__type__": "cc.Canvas", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 2 + }, + "_enabled": true, + "_designResolution": { + "__type__": "cc.Size", + "width": 960, + "height": 640 + }, + "_fitWidth": true, + "_fitHeight": true, + "_id": "6cqNY7oFVCsqtTBc31iZaD" + }, + { + "__type__": "19aaeSYSZZGULvtl5gcIKyn", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 2 + }, + "_enabled": true, + "protonSM": { + "__uuid__": "59b8f7eb-f327-47e0-aa01-42ecad377557" + }, + "protonMD": { + "__uuid__": "75af4f59-790b-4c40-ba2e-54ffc1cc3c23" + }, + "protonLG": { + "__uuid__": "9c3d7d56-f77a-4e1f-a64c-865e00c80cff" + }, + "_id": "9dG3rXxEZK86odqNrkg1y4" + } +] \ No newline at end of file diff --git a/assets/Settings.fire.meta b/assets/Settings.fire.meta new file mode 100644 index 0000000..3f424ff --- /dev/null +++ b/assets/Settings.fire.meta @@ -0,0 +1,7 @@ +{ + "ver": "1.2.1", + "uuid": "6dfa2e82-6ef5-4231-bb1f-7ad1d2ec5cce", + "asyncLoadAssets": false, + "autoReleaseAssets": false, + "subMetas": {} +} \ No newline at end of file diff --git a/assets/Store.fire b/assets/Store.fire new file mode 100644 index 0000000..69c0333 --- /dev/null +++ b/assets/Store.fire @@ -0,0 +1 @@ +[{"__type__":"cc.SceneAsset","scene":{"__id__":1}},{"__type__":"cc.Scene","_children":[{"__id__":2}]},{"__type__":"cc.Node","_name":"Canvas","_parent":{"__id__":1},"_children":[],"_components":[{"__id__":3}]},{"__type__":"cc.Canvas","node":{"__id__":2},"_fitWidth":false,"_fitHeight":true,"_designResolution":{"__type__":"cc.Size","width":960,"height":640}}] \ No newline at end of file diff --git a/assets/Store.fire.meta b/assets/Store.fire.meta new file mode 100644 index 0000000..8802c3c --- /dev/null +++ b/assets/Store.fire.meta @@ -0,0 +1,7 @@ +{ + "ver": "1.2.1", + "uuid": "b9648456-60cb-4d20-b846-8a96221d7570", + "asyncLoadAssets": false, + "autoReleaseAssets": false, + "subMetas": {} +} \ No newline at end of file