Commit 516cfdc6 authored by Nguyễn Quang Sáng's avatar Nguyễn Quang Sáng

06/09/2023 commit

parent 3c14ab1a
...@@ -14,8 +14,8 @@ ...@@ -14,8 +14,8 @@
"frame": 0, "frame": 0,
"value": { "value": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
"x": 0.9, "x": 0.6,
"y": 0.9, "y": 0.6,
"z": 0.783 "z": 0.783
} }
}, },
...@@ -23,17 +23,8 @@ ...@@ -23,17 +23,8 @@
"frame": 0.08333333333333333, "frame": 0.08333333333333333,
"value": { "value": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
"x": 0.7, "x": 0.5,
"y": 0.7, "y": 0.5,
"z": 0.783
}
},
{
"frame": 0.11666666666666667,
"value": {
"__type__": "cc.Vec3",
"x": 0.78,
"y": 0.78,
"z": 0.783 "z": 0.783
} }
}, },
...@@ -41,8 +32,8 @@ ...@@ -41,8 +32,8 @@
"frame": 0.16666666666666666, "frame": 0.16666666666666666,
"value": { "value": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
"x": 0.9, "x": 0.6,
"y": 0.9, "y": 0.6,
"z": 0.783 "z": 0.783
} }
} }
......
assets/Resources/BG.jpg

240 KB | W: | H:

assets/Resources/BG.jpg

41.9 KB | W: | H:

assets/Resources/BG.jpg
assets/Resources/BG.jpg
assets/Resources/BG.jpg
assets/Resources/BG.jpg
  • 2-up
  • Swipe
  • Onion skin
{ {
"ver": "2.3.7", "ver": "2.3.7",
"uuid": "184aeb7b-e391-4f16-b8f1-491a81db5bc4", "uuid": "16a0c8ab-766e-4c56-a21c-07d133f5b706",
"importer": "texture", "importer": "texture",
"type": "sprite", "type": "sprite",
"wrapMode": "clamp", "wrapMode": "clamp",
...@@ -8,15 +8,15 @@ ...@@ -8,15 +8,15 @@
"premultiplyAlpha": false, "premultiplyAlpha": false,
"genMipmaps": false, "genMipmaps": false,
"packable": true, "packable": true,
"width": 1200, "width": 640,
"height": 857, "height": 1140,
"platformSettings": {}, "platformSettings": {},
"subMetas": { "subMetas": {
"BG": { "BG": {
"ver": "1.0.6", "ver": "1.0.6",
"uuid": "86126e9f-7b58-4c77-aecc-596381feedf3", "uuid": "34372f24-a4a2-4584-8c85-5cdf1822d2b1",
"importer": "sprite-frame", "importer": "sprite-frame",
"rawTextureUuid": "184aeb7b-e391-4f16-b8f1-491a81db5bc4", "rawTextureUuid": "16a0c8ab-766e-4c56-a21c-07d133f5b706",
"trimType": "auto", "trimType": "auto",
"trimThreshold": 1, "trimThreshold": 1,
"rotated": false, "rotated": false,
...@@ -24,10 +24,10 @@ ...@@ -24,10 +24,10 @@
"offsetY": 0, "offsetY": 0,
"trimX": 0, "trimX": 0,
"trimY": 0, "trimY": 0,
"width": 1200, "width": 640,
"height": 857, "height": 1140,
"rawWidth": 1200, "rawWidth": 640,
"rawHeight": 857, "rawHeight": 1140,
"borderTop": 0, "borderTop": 0,
"borderBottom": 0, "borderBottom": 0,
"borderLeft": 0, "borderLeft": 0,
......
{
"ver": "2.3.7",
"uuid": "2853941e-8743-4524-8a93-d4b1e77f905a",
"importer": "texture",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 640,
"height": 1140,
"platformSettings": {},
"subMetas": {
"BGgameplay": {
"ver": "1.0.6",
"uuid": "3272cb76-6333-452b-96d5-ab3bc9a2a5d4",
"importer": "sprite-frame",
"rawTextureUuid": "2853941e-8743-4524-8a93-d4b1e77f905a",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 640,
"height": 1140,
"rawWidth": 640,
"rawHeight": 1140,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
assets/Resources/shop_zone.png

1.8 KB | W: | H:

assets/Resources/shop_zone.png

1.63 KB | W: | H:

assets/Resources/shop_zone.png
assets/Resources/shop_zone.png
assets/Resources/shop_zone.png
assets/Resources/shop_zone.png
  • 2-up
  • Swipe
  • Onion skin
{ {
"ver": "2.3.7", "ver": "2.3.7",
"uuid": "5cba4c53-4236-4091-8526-47a674a874ef", "uuid": "384bea22-3adf-4a97-b289-6216aae7567a",
"importer": "texture", "importer": "texture",
"type": "sprite", "type": "sprite",
"wrapMode": "clamp", "wrapMode": "clamp",
...@@ -8,15 +8,15 @@ ...@@ -8,15 +8,15 @@
"premultiplyAlpha": false, "premultiplyAlpha": false,
"genMipmaps": false, "genMipmaps": false,
"packable": true, "packable": true,
"width": 63, "width": 125,
"height": 125, "height": 63,
"platformSettings": {}, "platformSettings": {},
"subMetas": { "subMetas": {
"shop_zone": { "shop_zone": {
"ver": "1.0.6", "ver": "1.0.6",
"uuid": "37e91c24-1774-4125-a548-9ad70e10bf67", "uuid": "0c27029f-5de8-478d-8c37-568e030d3fd2",
"importer": "sprite-frame", "importer": "sprite-frame",
"rawTextureUuid": "5cba4c53-4236-4091-8526-47a674a874ef", "rawTextureUuid": "384bea22-3adf-4a97-b289-6216aae7567a",
"trimType": "auto", "trimType": "auto",
"trimThreshold": 1, "trimThreshold": 1,
"rotated": false, "rotated": false,
...@@ -24,10 +24,10 @@ ...@@ -24,10 +24,10 @@
"offsetY": 0, "offsetY": 0,
"trimX": 0, "trimX": 0,
"trimY": 0, "trimY": 0,
"width": 125, "width": 124,
"height": 63, "height": 59,
"rawWidth": 125, "rawWidth": 124,
"rawHeight": 63, "rawHeight": 59,
"borderTop": 0, "borderTop": 0,
"borderBottom": 0, "borderBottom": 0,
"borderLeft": 0, "borderLeft": 0,
......
This diff is collapsed.
...@@ -260,9 +260,9 @@ ...@@ -260,9 +260,9 @@
"_opacity": 255, "_opacity": 255,
"_color": { "_color": {
"__type__": "cc.Color", "__type__": "cc.Color",
"r": 141, "r": 255,
"g": 184, "g": 255,
"b": 240, "b": 255,
"a": 255 "a": 255
}, },
"_contentSize": { "_contentSize": {
...@@ -320,9 +320,9 @@ ...@@ -320,9 +320,9 @@
"_srcBlendFactor": 770, "_srcBlendFactor": 770,
"_dstBlendFactor": 771, "_dstBlendFactor": 771,
"_spriteFrame": { "_spriteFrame": {
"__uuid__": "a23235d1-15db-4b95-8439-a2e005bfff91" "__uuid__": "34372f24-a4a2-4584-8c85-5cdf1822d2b1"
}, },
"_type": 0, "_type": 2,
"_sizeMode": 0, "_sizeMode": 0,
"_fillType": 0, "_fillType": 0,
"_fillCenter": { "_fillCenter": {
...@@ -395,7 +395,7 @@ ...@@ -395,7 +395,7 @@
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 69, "width": 69,
"height": 68 "height": 69
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
...@@ -450,7 +450,7 @@ ...@@ -450,7 +450,7 @@
"__uuid__": "ea32a087-fddd-437d-940f-9325a4483eb6" "__uuid__": "ea32a087-fddd-437d-940f-9325a4483eb6"
}, },
"_type": 0, "_type": 0,
"_sizeMode": 1, "_sizeMode": 0,
"_fillType": 0, "_fillType": 0,
"_fillCenter": { "_fillCenter": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
...@@ -665,7 +665,7 @@ ...@@ -665,7 +665,7 @@
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 640, "width": 640,
"height": 955.5 "height": 1000
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
...@@ -683,8 +683,8 @@ ...@@ -683,8 +683,8 @@
0, 0,
0, 0,
1, 1,
0.868, 0.8,
0.868, 0.8,
0.868 0.868
] ]
}, },
...@@ -749,7 +749,7 @@ ...@@ -749,7 +749,7 @@
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
-250, -250,
392.75, 415,
0, 0,
0, 0,
0, 0,
...@@ -1145,7 +1145,7 @@ ...@@ -1145,7 +1145,7 @@
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
-125, -125,
392.75, 415,
0, 0,
0, 0,
0, 0,
...@@ -1541,7 +1541,7 @@ ...@@ -1541,7 +1541,7 @@
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
0, 0,
392.75, 415,
0, 0,
0, 0,
0, 0,
...@@ -1937,7 +1937,7 @@ ...@@ -1937,7 +1937,7 @@
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
125, 125,
392.75, 415,
0, 0,
0, 0,
0, 0,
...@@ -2333,7 +2333,7 @@ ...@@ -2333,7 +2333,7 @@
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
250, 250,
392.75, 415,
0, 0,
0, 0,
0, 0,
...@@ -2729,7 +2729,7 @@ ...@@ -2729,7 +2729,7 @@
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
-250, -250,
237.75, 260,
0, 0,
0, 0,
0, 0,
...@@ -3125,7 +3125,7 @@ ...@@ -3125,7 +3125,7 @@
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
-125, -125,
237.75, 260,
0, 0,
0, 0,
0, 0,
...@@ -3521,7 +3521,7 @@ ...@@ -3521,7 +3521,7 @@
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
0, 0,
237.75, 260,
0, 0,
0, 0,
0, 0,
...@@ -3917,7 +3917,7 @@ ...@@ -3917,7 +3917,7 @@
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
125, 125,
237.75, 260,
0, 0,
0, 0,
0, 0,
...@@ -4313,7 +4313,7 @@ ...@@ -4313,7 +4313,7 @@
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
250, 250,
237.75, 260,
0, 0,
0, 0,
0, 0,
...@@ -4709,7 +4709,7 @@ ...@@ -4709,7 +4709,7 @@
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
-250, -250,
82.75, 105,
0, 0,
0, 0,
0, 0,
...@@ -5105,7 +5105,7 @@ ...@@ -5105,7 +5105,7 @@
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
-125, -125,
82.75, 105,
0, 0,
0, 0,
0, 0,
...@@ -5501,7 +5501,7 @@ ...@@ -5501,7 +5501,7 @@
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
0, 0,
82.75, 105,
0, 0,
0, 0,
0, 0,
...@@ -5897,7 +5897,7 @@ ...@@ -5897,7 +5897,7 @@
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
125, 125,
82.75, 105,
0, 0,
0, 0,
0, 0,
...@@ -6293,7 +6293,7 @@ ...@@ -6293,7 +6293,7 @@
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
250, 250,
82.75, 105,
0, 0,
0, 0,
0, 0,
...@@ -6689,7 +6689,7 @@ ...@@ -6689,7 +6689,7 @@
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
-250, -250,
-72.25, -50,
0, 0,
0, 0,
0, 0,
...@@ -7085,7 +7085,7 @@ ...@@ -7085,7 +7085,7 @@
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
-125, -125,
-72.25, -50,
0, 0,
0, 0,
0, 0,
...@@ -7481,7 +7481,7 @@ ...@@ -7481,7 +7481,7 @@
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
0, 0,
-72.25, -50,
0, 0,
0, 0,
0, 0,
...@@ -7877,7 +7877,7 @@ ...@@ -7877,7 +7877,7 @@
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
125, 125,
-72.25, -50,
0, 0,
0, 0,
0, 0,
...@@ -8273,7 +8273,7 @@ ...@@ -8273,7 +8273,7 @@
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
250, 250,
-72.25, -50,
0, 0,
0, 0,
0, 0,
...@@ -8669,7 +8669,7 @@ ...@@ -8669,7 +8669,7 @@
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
-250, -250,
-227.25, -205,
0, 0,
0, 0,
0, 0,
...@@ -9065,7 +9065,7 @@ ...@@ -9065,7 +9065,7 @@
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
-125, -125,
-227.25, -205,
0, 0,
0, 0,
0, 0,
...@@ -9461,7 +9461,7 @@ ...@@ -9461,7 +9461,7 @@
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
0, 0,
-227.25, -205,
0, 0,
0, 0,
0, 0,
...@@ -9857,7 +9857,7 @@ ...@@ -9857,7 +9857,7 @@
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
125, 125,
-227.25, -205,
0, 0,
0, 0,
0, 0,
...@@ -10253,7 +10253,7 @@ ...@@ -10253,7 +10253,7 @@
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
250, 250,
-227.25, -205,
0, 0,
0, 0,
0, 0,
...@@ -10649,7 +10649,7 @@ ...@@ -10649,7 +10649,7 @@
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
-250, -250,
-382.25, -360,
0, 0,
0, 0,
0, 0,
...@@ -11045,7 +11045,7 @@ ...@@ -11045,7 +11045,7 @@
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
-125, -125,
-382.25, -360,
0, 0,
0, 0,
0, 0,
...@@ -11441,7 +11441,7 @@ ...@@ -11441,7 +11441,7 @@
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
0, 0,
-382.25, -360,
0, 0,
0, 0,
0, 0,
...@@ -11837,7 +11837,7 @@ ...@@ -11837,7 +11837,7 @@
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
125, 125,
-382.25, -360,
0, 0,
0, 0,
0, 0,
...@@ -12233,7 +12233,7 @@ ...@@ -12233,7 +12233,7 @@
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
250, 250,
-382.25, -360,
0, 0,
0, 0,
0, 0,
...@@ -12592,7 +12592,7 @@ ...@@ -12592,7 +12592,7 @@
"_layoutSize": { "_layoutSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 640, "width": 640,
"height": 955.5 "height": 1000
}, },
"_resize": 2, "_resize": 2,
"_N$layoutType": 3, "_N$layoutType": 3,
...@@ -12702,7 +12702,7 @@ ...@@ -12702,7 +12702,7 @@
"__type__": "TypedArray", "__type__": "TypedArray",
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
-2.43, 0,
467.004, 467.004,
0, 0,
0, 0,
......
This diff is collapsed.
This diff is collapsed.
...@@ -69,7 +69,7 @@ export default class GamePlay extends cc.Component { ...@@ -69,7 +69,7 @@ export default class GamePlay extends cc.Component {
rightEdgePoints: Array<cc.Vec2> = new Array<cc.Vec2>(); rightEdgePoints: Array<cc.Vec2> = new Array<cc.Vec2>();
blockedObjects: Array<cc.Node> = new Array<cc.Node>(); blockedObjects: Array<cc.Node> = new Array<cc.Node>();
randomCoin: number = Math.floor(Math.random() * (30 - 26)) + 25; earnedCoin: number = 0;
protected onLoad(): void { protected onLoad(): void {
GamePlay.instance = this; GamePlay.instance = this;
...@@ -120,7 +120,7 @@ export default class GamePlay extends cc.Component { ...@@ -120,7 +120,7 @@ export default class GamePlay extends cc.Component {
if (status == "ok") { if (status == "ok") {
this.notiLabel.getComponent(cc.Label).string = this.notiLabel.getComponent(cc.Label).string =
"Successfully doubled coins!"; "Successfully doubled coins!";
LocalStorage.setAllCoin(LocalStorage.getAllCoin() + this.randomCoin * 2); LocalStorage.setAllCoin(LocalStorage.getAllCoin() + this.earnedCoin * 2);
this.adsBgr.active = true; this.adsBgr.active = true;
this.notiLabel.active = true; this.notiLabel.active = true;
this.scheduleOnce(() => { this.scheduleOnce(() => {
...@@ -129,7 +129,7 @@ export default class GamePlay extends cc.Component { ...@@ -129,7 +129,7 @@ export default class GamePlay extends cc.Component {
}, 2); }, 2);
this.currentCoin = LocalStorage.getAllCoin(); this.currentCoin = LocalStorage.getAllCoin();
this.coinLabel.getComponent(cc.Label).string = `x${this.currentCoin}`; this.coinLabel.getComponent(cc.Label).string = `x${this.currentCoin}`;
SoundController.playNoLoopSound(SoundController.instance.sounds[4]); SoundController.playNoLoopSound(SoundController.instance.sounds[4]);
SoundController.playNoLoopSound(SoundController.instance.sounds[5]); SoundController.playNoLoopSound(SoundController.instance.sounds[5]);
LocalStorage.setCurrentLevel((this.currentLevel += 1)); LocalStorage.setCurrentLevel((this.currentLevel += 1));
...@@ -399,8 +399,6 @@ export default class GamePlay extends cc.Component { ...@@ -399,8 +399,6 @@ export default class GamePlay extends cc.Component {
SoundController.playNoLoopSound(SoundController.instance.sounds[13]); SoundController.playNoLoopSound(SoundController.instance.sounds[13]);
SoundController.playNoLoopSound(SoundController.instance.sounds[10]); SoundController.playNoLoopSound(SoundController.instance.sounds[10]);
this.coinEarned.getComponent(cc.Label).string = `x${this.randomCoin}`;
this.isCompleted = true; this.isCompleted = true;
StageController.instance.onCompleted(); StageController.instance.onCompleted();
if (this.currentLevel + 1 == this.highestLevel) { if (this.currentLevel + 1 == this.highestLevel) {
...@@ -413,24 +411,29 @@ export default class GamePlay extends cc.Component { ...@@ -413,24 +411,29 @@ export default class GamePlay extends cc.Component {
if (LimitBar.instance.winStar == 3) { if (LimitBar.instance.winStar == 3) {
if (LocalStorage.getStarAtLevel(levelName) >= 3) return; if (LocalStorage.getStarAtLevel(levelName) >= 3) return;
LocalStorage.setStarAtLevel(levelName, 3); LocalStorage.setStarAtLevel(levelName, 3);
this.earnedCoin = Math.floor(Math.random() * 6) + 25;
} }
if (LimitBar.instance.winStar == 2) { if (LimitBar.instance.winStar == 2) {
this.rewardSprite.getComponent(cc.Sprite).spriteFrame = this.rewardSprite.getComponent(cc.Sprite).spriteFrame =
this.starWinSprites[1]; this.starWinSprites[1];
if (LocalStorage.getStarAtLevel(levelName) >= 2) return; if (LocalStorage.getStarAtLevel(levelName) >= 2) return;
LocalStorage.setStarAtLevel(levelName, 2); LocalStorage.setStarAtLevel(levelName, 2);
this.earnedCoin = Math.floor(Math.random() * 6) + 20;
} }
if (LimitBar.instance.winStar == 1) { if (LimitBar.instance.winStar == 1) {
this.rewardSprite.getComponent(cc.Sprite).spriteFrame = this.rewardSprite.getComponent(cc.Sprite).spriteFrame =
this.starWinSprites[0]; this.starWinSprites[0];
if (LocalStorage.getStarAtLevel(levelName) >= 1) return; if (LocalStorage.getStarAtLevel(levelName) >= 1) return;
LocalStorage.setStarAtLevel(levelName, 1); LocalStorage.setStarAtLevel(levelName, 1);
this.earnedCoin = Math.floor(Math.random() * 6) + 15;
} }
this.coinEarned.getComponent(cc.Label).string = `x${this.earnedCoin}`;
this.updateAllStarLabel(); this.updateAllStarLabel();
} }
onClickCollect() { onClickCollect() {
LocalStorage.setAllCoin((this.currentCoin += this.randomCoin)); LocalStorage.setAllCoin((this.currentCoin += this.earnedCoin));
this.coinLabel.getComponent( this.coinLabel.getComponent(
cc.Label cc.Label
).string = `x${LocalStorage.getAllCoin()}`; ).string = `x${LocalStorage.getAllCoin()}`;
......
{ {
"start-scene": "73089584-bdb3-4639-abbf-bb4f569866a9", "start-scene": "73089584-bdb3-4639-abbf-bb4f569866a9",
"last-module-event-record-time": 1693293321483 "last-module-event-record-time": 1693997077867
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment