Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
SaveTheDoge
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nguyễn Quang Sáng
SaveTheDoge
Commits
516cfdc6
Commit
516cfdc6
authored
Sep 06, 2023
by
Nguyễn Quang Sáng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
06/09/2023 commit
parent
3c14ab1a
Changes
14
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
1111 additions
and
811 deletions
+1111
-811
Logo.anim
assets/Animations/Logo.anim
+6
-15
BG.jpg
assets/Resources/BG.jpg
+0
-0
BG.jpg.meta
assets/Resources/BG.jpg.meta
+9
-9
BGgameplay.jpg
assets/Resources/BGgameplay.jpg
+0
-0
BGgameplay.jpg.meta
assets/Resources/BGgameplay.jpg.meta
+38
-0
shop_zone.png
assets/Resources/shop_zone.png
+0
-0
shop_zone.png.meta
assets/Resources/shop_zone.png.meta
+9
-9
gameplay.fire
assets/Scenes/gameplay.fire
+166
-131
levels.fire
assets/Scenes/levels.fire
+42
-42
shop.fire
assets/Scenes/shop.fire
+520
-450
start.fire
assets/Scenes/start.fire
+311
-148
GamePlay.ts
assets/Scripts/Controllers/GamePlay.ts
+9
-6
background.png
build-templates/web-mobile/background.png
+0
-0
project.json
settings/project.json
+1
-1
No files found.
assets/Animations/Logo.anim
View file @
516cfdc6
...
...
@@ -14,8 +14,8 @@
"frame": 0,
"value": {
"__type__": "cc.Vec3",
"x": 0.
9
,
"y": 0.
9
,
"x": 0.
6
,
"y": 0.
6
,
"z": 0.783
}
},
...
...
@@ -23,17 +23,8 @@
"frame": 0.08333333333333333,
"value": {
"__type__": "cc.Vec3",
"x": 0.7,
"y": 0.7,
"z": 0.783
}
},
{
"frame": 0.11666666666666667,
"value": {
"__type__": "cc.Vec3",
"x": 0.78,
"y": 0.78,
"x": 0.5,
"y": 0.5,
"z": 0.783
}
},
...
...
@@ -41,8 +32,8 @@
"frame": 0.16666666666666666,
"value": {
"__type__": "cc.Vec3",
"x": 0.
9
,
"y": 0.
9
,
"x": 0.
6
,
"y": 0.
6
,
"z": 0.783
}
}
...
...
assets/Resources/BG.jpg
View replaced file @
3c14ab1a
View file @
516cfdc6
240 KB
|
W:
|
H:
41.9 KB
|
W:
|
H:
2-up
Swipe
Onion skin
assets/Resources/BG.jpg.meta
View file @
516cfdc6
{
"ver": "2.3.7",
"uuid": "1
84aeb7b-e391-4f16-b8f1-491a81db5bc4
",
"uuid": "1
6a0c8ab-766e-4c56-a21c-07d133f5b706
",
"importer": "texture",
"type": "sprite",
"wrapMode": "clamp",
...
...
@@ -8,15 +8,15 @@
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width":
120
0,
"height":
857
,
"width":
64
0,
"height":
1140
,
"platformSettings": {},
"subMetas": {
"BG": {
"ver": "1.0.6",
"uuid": "
86126e9f-7b58-4c77-aecc-596381feedf3
",
"uuid": "
34372f24-a4a2-4584-8c85-5cdf1822d2b1
",
"importer": "sprite-frame",
"rawTextureUuid": "1
84aeb7b-e391-4f16-b8f1-491a81db5bc4
",
"rawTextureUuid": "1
6a0c8ab-766e-4c56-a21c-07d133f5b706
",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
...
...
@@ -24,10 +24,10 @@
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width":
120
0,
"height":
857
,
"rawWidth":
120
0,
"rawHeight":
857
,
"width":
64
0,
"height":
1140
,
"rawWidth":
64
0,
"rawHeight":
1140
,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
...
...
assets/Resources/BGgameplay.jpg
0 → 100644
View file @
516cfdc6
47.4 KB
assets/Resources/BGgameplay.jpg.meta
0 → 100644
View file @
516cfdc6
{
"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
View replaced file @
3c14ab1a
View file @
516cfdc6
1.8 KB
|
W:
|
H:
1.63 KB
|
W:
|
H:
2-up
Swipe
Onion skin
assets/Resources/shop_zone.png.meta
View file @
516cfdc6
{
"ver": "2.3.7",
"uuid": "
5cba4c53-4236-4091-8526-47a674a874ef
",
"uuid": "
384bea22-3adf-4a97-b289-6216aae7567a
",
"importer": "texture",
"type": "sprite",
"wrapMode": "clamp",
...
...
@@ -8,15 +8,15 @@
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width":
63
,
"height":
125
,
"width":
125
,
"height":
63
,
"platformSettings": {},
"subMetas": {
"shop_zone": {
"ver": "1.0.6",
"uuid": "
37e91c24-1774-4125-a548-9ad70e10bf67
",
"uuid": "
0c27029f-5de8-478d-8c37-568e030d3fd2
",
"importer": "sprite-frame",
"rawTextureUuid": "
5cba4c53-4236-4091-8526-47a674a874ef
",
"rawTextureUuid": "
384bea22-3adf-4a97-b289-6216aae7567a
",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
...
...
@@ -24,10 +24,10 @@
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 12
5
,
"height":
63
,
"rawWidth": 12
5
,
"rawHeight":
63
,
"width": 12
4
,
"height":
59
,
"rawWidth": 12
4
,
"rawHeight":
59
,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
...
...
assets/Scenes/gameplay.fire
View file @
516cfdc6
This diff is collapsed.
Click to expand it.
assets/Scenes/levels.fire
View file @
516cfdc6
...
...
@@ -260,9 +260,9 @@
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r":
141
,
"g":
184
,
"b": 2
40
,
"r":
255
,
"g":
255
,
"b": 2
55
,
"a": 255
},
"_contentSize": {
...
...
@@ -320,9 +320,9 @@
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "
a23235d1-15db-4b95-8439-a2e005bfff9
1"
"__uuid__": "
34372f24-a4a2-4584-8c85-5cdf1822d2b
1"
},
"_type":
0
,
"_type":
2
,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
...
...
@@ -395,7 +395,7 @@
"_contentSize": {
"__type__": "cc.Size",
"width": 69,
"height": 6
8
"height": 6
9
},
"_anchorPoint": {
"__type__": "cc.Vec2",
...
...
@@ -450,7 +450,7 @@
"__uuid__": "ea32a087-fddd-437d-940f-9325a4483eb6"
},
"_type": 0,
"_sizeMode":
1
,
"_sizeMode":
0
,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
...
...
@@ -665,7 +665,7 @@
"_contentSize": {
"__type__": "cc.Size",
"width": 640,
"height":
955.5
"height":
1000
},
"_anchorPoint": {
"__type__": "cc.Vec2",
...
...
@@ -683,8 +683,8 @@
0,
0,
1,
0.8
68
,
0.8
68
,
0.8,
0.8,
0.868
]
},
...
...
@@ -749,7 +749,7 @@
"ctor": "Float64Array",
"array": [
-250,
392.7
5,
41
5,
0,
0,
0,
...
...
@@ -1145,7 +1145,7 @@
"ctor": "Float64Array",
"array": [
-125,
392.7
5,
41
5,
0,
0,
0,
...
...
@@ -1541,7 +1541,7 @@
"ctor": "Float64Array",
"array": [
0,
392.7
5,
41
5,
0,
0,
0,
...
...
@@ -1937,7 +1937,7 @@
"ctor": "Float64Array",
"array": [
125,
392.7
5,
41
5,
0,
0,
0,
...
...
@@ -2333,7 +2333,7 @@
"ctor": "Float64Array",
"array": [
250,
392.7
5,
41
5,
0,
0,
0,
...
...
@@ -2729,7 +2729,7 @@
"ctor": "Float64Array",
"array": [
-250,
2
37.75
,
2
60
,
0,
0,
0,
...
...
@@ -3125,7 +3125,7 @@
"ctor": "Float64Array",
"array": [
-125,
2
37.75
,
2
60
,
0,
0,
0,
...
...
@@ -3521,7 +3521,7 @@
"ctor": "Float64Array",
"array": [
0,
2
37.75
,
2
60
,
0,
0,
0,
...
...
@@ -3917,7 +3917,7 @@
"ctor": "Float64Array",
"array": [
125,
2
37.75
,
2
60
,
0,
0,
0,
...
...
@@ -4313,7 +4313,7 @@
"ctor": "Float64Array",
"array": [
250,
2
37.75
,
2
60
,
0,
0,
0,
...
...
@@ -4709,7 +4709,7 @@
"ctor": "Float64Array",
"array": [
-250,
82.7
5,
10
5,
0,
0,
0,
...
...
@@ -5105,7 +5105,7 @@
"ctor": "Float64Array",
"array": [
-125,
82.7
5,
10
5,
0,
0,
0,
...
...
@@ -5501,7 +5501,7 @@
"ctor": "Float64Array",
"array": [
0,
82.7
5,
10
5,
0,
0,
0,
...
...
@@ -5897,7 +5897,7 @@
"ctor": "Float64Array",
"array": [
125,
82.7
5,
10
5,
0,
0,
0,
...
...
@@ -6293,7 +6293,7 @@
"ctor": "Float64Array",
"array": [
250,
82.7
5,
10
5,
0,
0,
0,
...
...
@@ -6689,7 +6689,7 @@
"ctor": "Float64Array",
"array": [
-250,
-
72.25
,
-
50
,
0,
0,
0,
...
...
@@ -7085,7 +7085,7 @@
"ctor": "Float64Array",
"array": [
-125,
-
72.25
,
-
50
,
0,
0,
0,
...
...
@@ -7481,7 +7481,7 @@
"ctor": "Float64Array",
"array": [
0,
-
72.25
,
-
50
,
0,
0,
0,
...
...
@@ -7877,7 +7877,7 @@
"ctor": "Float64Array",
"array": [
125,
-
72.25
,
-
50
,
0,
0,
0,
...
...
@@ -8273,7 +8273,7 @@
"ctor": "Float64Array",
"array": [
250,
-
72.25
,
-
50
,
0,
0,
0,
...
...
@@ -8669,7 +8669,7 @@
"ctor": "Float64Array",
"array": [
-250,
-2
27.2
5,
-2
0
5,
0,
0,
0,
...
...
@@ -9065,7 +9065,7 @@
"ctor": "Float64Array",
"array": [
-125,
-2
27.2
5,
-2
0
5,
0,
0,
0,
...
...
@@ -9461,7 +9461,7 @@
"ctor": "Float64Array",
"array": [
0,
-2
27.2
5,
-2
0
5,
0,
0,
0,
...
...
@@ -9857,7 +9857,7 @@
"ctor": "Float64Array",
"array": [
125,
-2
27.2
5,
-2
0
5,
0,
0,
0,
...
...
@@ -10253,7 +10253,7 @@
"ctor": "Float64Array",
"array": [
250,
-2
27.2
5,
-2
0
5,
0,
0,
0,
...
...
@@ -10649,7 +10649,7 @@
"ctor": "Float64Array",
"array": [
-250,
-3
82.25
,
-3
60
,
0,
0,
0,
...
...
@@ -11045,7 +11045,7 @@
"ctor": "Float64Array",
"array": [
-125,
-3
82.25
,
-3
60
,
0,
0,
0,
...
...
@@ -11441,7 +11441,7 @@
"ctor": "Float64Array",
"array": [
0,
-3
82.25
,
-3
60
,
0,
0,
0,
...
...
@@ -11837,7 +11837,7 @@
"ctor": "Float64Array",
"array": [
125,
-3
82.25
,
-3
60
,
0,
0,
0,
...
...
@@ -12233,7 +12233,7 @@
"ctor": "Float64Array",
"array": [
250,
-3
82.25
,
-3
60
,
0,
0,
0,
...
...
@@ -12592,7 +12592,7 @@
"_layoutSize": {
"__type__": "cc.Size",
"width": 640,
"height":
955.5
"height":
1000
},
"_resize": 2,
"_N$layoutType": 3,
...
...
@@ -12702,7 +12702,7 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-2.43
,
0
,
467.004,
0,
0,
...
...
assets/Scenes/shop.fire
View file @
516cfdc6
This diff is collapsed.
Click to expand it.
assets/Scenes/start.fire
View file @
516cfdc6
This diff is collapsed.
Click to expand it.
assets/Scripts/Controllers/GamePlay.ts
View file @
516cfdc6
...
...
@@ -69,7 +69,7 @@ export default class GamePlay extends cc.Component {
rightEdgePoints
:
Array
<
cc
.
Vec2
>
=
new
Array
<
cc
.
Vec2
>
();
blockedObjects
:
Array
<
cc
.
Node
>
=
new
Array
<
cc
.
Node
>
();
randomCoin
:
number
=
Math
.
floor
(
Math
.
random
()
*
(
30
-
26
))
+
25
;
earnedCoin
:
number
=
0
;
protected
onLoad
():
void
{
GamePlay
.
instance
=
this
;
...
...
@@ -120,7 +120,7 @@ export default class GamePlay extends cc.Component {
if
(
status
==
"ok"
)
{
this
.
notiLabel
.
getComponent
(
cc
.
Label
).
string
=
"Successfully doubled coins!"
;
LocalStorage
.
setAllCoin
(
LocalStorage
.
getAllCoin
()
+
this
.
random
Coin
*
2
);
LocalStorage
.
setAllCoin
(
LocalStorage
.
getAllCoin
()
+
this
.
earned
Coin
*
2
);
this
.
adsBgr
.
active
=
true
;
this
.
notiLabel
.
active
=
true
;
this
.
scheduleOnce
(()
=>
{
...
...
@@ -399,8 +399,6 @@ export default class GamePlay extends cc.Component {
SoundController
.
playNoLoopSound
(
SoundController
.
instance
.
sounds
[
13
]);
SoundController
.
playNoLoopSound
(
SoundController
.
instance
.
sounds
[
10
]);
this
.
coinEarned
.
getComponent
(
cc
.
Label
).
string
=
`x
${
this
.
randomCoin
}
`
;
this
.
isCompleted
=
true
;
StageController
.
instance
.
onCompleted
();
if
(
this
.
currentLevel
+
1
==
this
.
highestLevel
)
{
...
...
@@ -413,24 +411,29 @@ export default class GamePlay extends cc.Component {
if
(
LimitBar
.
instance
.
winStar
==
3
)
{
if
(
LocalStorage
.
getStarAtLevel
(
levelName
)
>=
3
)
return
;
LocalStorage
.
setStarAtLevel
(
levelName
,
3
);
this
.
earnedCoin
=
Math
.
floor
(
Math
.
random
()
*
6
)
+
25
;
}
if
(
LimitBar
.
instance
.
winStar
==
2
)
{
this
.
rewardSprite
.
getComponent
(
cc
.
Sprite
).
spriteFrame
=
this
.
starWinSprites
[
1
];
if
(
LocalStorage
.
getStarAtLevel
(
levelName
)
>=
2
)
return
;
LocalStorage
.
setStarAtLevel
(
levelName
,
2
);
this
.
earnedCoin
=
Math
.
floor
(
Math
.
random
()
*
6
)
+
20
;
}
if
(
LimitBar
.
instance
.
winStar
==
1
)
{
this
.
rewardSprite
.
getComponent
(
cc
.
Sprite
).
spriteFrame
=
this
.
starWinSprites
[
0
];
if
(
LocalStorage
.
getStarAtLevel
(
levelName
)
>=
1
)
return
;
LocalStorage
.
setStarAtLevel
(
levelName
,
1
);
this
.
earnedCoin
=
Math
.
floor
(
Math
.
random
()
*
6
)
+
15
;
}
this
.
coinEarned
.
getComponent
(
cc
.
Label
).
string
=
`x
${
this
.
earnedCoin
}
`
;
this
.
updateAllStarLabel
();
}
onClickCollect
()
{
LocalStorage
.
setAllCoin
((
this
.
currentCoin
+=
this
.
random
Coin
));
LocalStorage
.
setAllCoin
((
this
.
currentCoin
+=
this
.
earned
Coin
));
this
.
coinLabel
.
getComponent
(
cc
.
Label
).
string
=
`x
${
LocalStorage
.
getAllCoin
()}
`
;
...
...
build-templates/web-mobile/background.png
View replaced file @
3c14ab1a
View file @
516cfdc6
This diff is collapsed.
Click to expand it.
settings/project.json
View file @
516cfdc6
{
"start-scene"
:
"73089584-bdb3-4639-abbf-bb4f569866a9"
,
"last-module-event-record-time"
:
1693
293321483
"last-module-event-record-time"
:
1693
997077867
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment