Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
EmidWife-New
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
2023-24-005
EmidWife-New
Commits
66b6c0b7
Commit
66b6c0b7
authored
May 16, 2024
by
Malsha Jayakody
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
implement progress
parent
4d356d8d
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
7 additions
and
1 deletion
+7
-1
src/screens/home/game/game01/GameLevel04.js
src/screens/home/game/game01/GameLevel04.js
+1
-0
src/screens/home/game/game01/GameLevel1.js
src/screens/home/game/game01/GameLevel1.js
+2
-1
src/screens/home/game/game01/GameLevel2.js
src/screens/home/game/game01/GameLevel2.js
+1
-0
src/screens/home/game/game01/GameLevel3.js
src/screens/home/game/game01/GameLevel3.js
+1
-0
src/screens/home/game/game01/GameLevel5.js
src/screens/home/game/game01/GameLevel5.js
+1
-0
src/screens/home/game/game01/GameLevel6.js
src/screens/home/game/game01/GameLevel6.js
+1
-0
No files found.
src/screens/home/game/game01/GameLevel04.js
View file @
66b6c0b7
...
...
@@ -130,6 +130,7 @@ const CandyCrushGameLevel04 = ({navigation}) => {
},
},
]);
backgroundMusic
.
current
.
setVolume
(
0.0
);
resetGame
();
}
}
else
{
...
...
src/screens/home/game/game01/GameLevel1.js
View file @
66b6c0b7
...
...
@@ -82,6 +82,7 @@ const GameLevel1 = ({navigation}) => {
},
],
);
backgroundMusic
.
current
.
setVolume
(
0.0
);
}
else
if
(
timeLeft
===
0
&&
score
<
50
)
{
Alert
.
alert
(
'
Game Over
'
,
...
...
@@ -296,7 +297,7 @@ const styles = StyleSheet.create({
board
:
{
width
:
350
,
height
:
350
,
backgroundColor
:
'
#
E56E94
'
,
backgroundColor
:
'
#
F33A6A
'
,
justifyContent
:
'
center
'
,
alignItems
:
'
center
'
,
overflow
:
'
hidden
'
,
...
...
src/screens/home/game/game01/GameLevel2.js
View file @
66b6c0b7
...
...
@@ -81,6 +81,7 @@ const CandyCrushGameLevel02 = ({navigation}) => {
},
],
);
backgroundMusic
.
current
.
setVolume
(
0.0
);
}
else
if
(
timeLeft
===
0
&&
score
<
55
)
{
Alert
.
alert
(
'
Game Over
'
,
...
...
src/screens/home/game/game01/GameLevel3.js
View file @
66b6c0b7
...
...
@@ -81,6 +81,7 @@ const CandyCrushGameLevel03 = ({navigation}) => {
},
],
);
backgroundMusic
.
current
.
setVolume
(
0.0
);
}
else
if
(
timeLeft
===
0
&&
score
<
75
)
{
Alert
.
alert
(
'
Game Over
'
,
...
...
src/screens/home/game/game01/GameLevel5.js
View file @
66b6c0b7
...
...
@@ -75,6 +75,7 @@ const GameLevel5 = ({navigation}) => {
},
]);
setPoints
(
0
);
backgroundMusic
.
current
.
setVolume
(
0.0
);
}
},
[
points
]);
...
...
src/screens/home/game/game01/GameLevel6.js
View file @
66b6c0b7
...
...
@@ -72,6 +72,7 @@ const GameLevel6 = () => {
if
(
points
>=
200
)
{
Alert
.
alert
(
'
Congratulations 🥳🥳
'
,
'
You have won the game!
'
);
setPoints
(
0
);
backgroundMusic
.
current
.
setVolume
(
0.0
);
}
},
[
points
]);
...
...
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