Skip to content

Commit

Permalink
Merge pull request #1046 from pallasivasai/ballfall23
Browse files Browse the repository at this point in the history
Ball_Fall_Game is added
  • Loading branch information
Durgesh4993 authored Jul 2, 2024
2 parents 2e30b2c + 9c4b2b1 commit 14de412
Show file tree
Hide file tree
Showing 16 changed files with 694 additions and 17 deletions.
26 changes: 9 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -241,28 +241,20 @@ ________________________________________________________________________________
| 183 | [Basketball Game](.SinglePlayer%20-%20Games/Basketball_Game) |
| 184 | [Ball Jumper Game](.SinglePlayer%20-%20Games/Ball_Jumper_Game) |
| 185 | [Math Sprint Game](.SinglePlayer%20-%20Games/Math_Sprint_Game) |
main
| 186 | [Quick Type](.SinglePlayer%20-%20Games/QuickType) |
| 187 | [SIMON_GAME](.SinglePlayer%20-%20Games/SIMON_GAME) |

| 186 | [Quick Type](.SinglePlayer%20-%20Games/QuickType) |
| 187 | [SIMON_GAME](.SinglePlayer%20-%20Games/SIMON_GAME) |
main
| 188 | [Cubula_Game](.SinglePlayer%20-%20Games/Cubula_Game) |
| 189 | [Ball_Shooting_Game](.SinglePlayer%20-%20Games/Ball_Shooting_Game) |
| 190 | [Baseball_Game](.SinglePlayer%20-%20Games/Baseball_Game) |
| 189 | [Hand_Cricket_Champ](./SinglePlayer%20-%20Games/Hand_Cricket_Champ) |
| 190 | [Pop My Balloon](<MultiPlayer - Games/Pop_My_Balloon>) |
main
| 191 | [Doraemon Run](.SinglePlayer%20-%20Games/DoraemonRun) |
| 192 | [Earth_Guardian](./SinglePlayer%20-%20Games/Earth_Guardian) |
| 191 | [Doraemon Run](.SinglePlayer%20-%20Games/DoraemonRun) |
| 192 | [Hand_Cricket_Champ](./SinglePlayer%20-%20Games/Hand_Cricket_Champ) |
| 193 | [SnakeBites Game](./SinglePlayer%20-%20Games/SnakeBites) |

| 194 | [Ball_Shooting_Game](.SinglePlayer%20-%20Games/Ball_Shooting_Game) |
| 195 | [Baseball_Game](.SinglePlayer%20-%20Games/Baseball_Game) |
| 196 | [Flames_Game](../MultiPlayer%20-%20Games/Flames_Game) |
| 191 | [Hand_Cricket_Champ](./SinglePlayer%20-%20Games/Hand_Cricket_Champ) |
| 192 | [Pop My Balloon](<MultiPlayer - Games/Pop_My_Balloon>) |
| 193 | [Doraemon Run](.SinglePlayer%20-%20Games/DoraemonRun) |
| 194 | [Earth_Guardian](./SinglePlayer%20-%20Games/Earth_Guardian) |
| 195 | [Hand_Cricket_Champ](./SinglePlayer%20-%20Games/Hand_Cricket_Champ) |
| 196 | [SnakeBites Game](./SinglePlayer%20-%20Games/SnakeBites) |
| 197 | [Flames_Game](../MultiPlayer%20-%20Games/Flames_Game) |
| 198 | [Ball_Fall_Game](.SinglePlayer%20-%20Games/Ball_Fall_Game) |




Expand Down
Binary file added SinglePlayer - Games/Ball_Fall_Game/Chopsic.ttf
Binary file not shown.
7 changes: 7 additions & 0 deletions SinglePlayer - Games/Ball_Fall_Game/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Ball_Fall_Game

"The ball is lost in the extremeties of space while exploring.If its touches the extreme of space,it will lose it life.Manage to save the ball's life by drawing it towards the bottom and extending its life time....Lets Start!! "

# How to play

Use keyboard keys or on screen keys
Binary file added SinglePlayer - Games/Ball_Fall_Game/bg.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
48 changes: 48 additions & 0 deletions SinglePlayer - Games/Ball_Fall_Game/front.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Ball Fall</title>
<link rel="stylesheet" href="index.css" />
<link
rel="icon"
type="imagectx.fillText:/x-icon"
href="favicon-32x32.png"
/>
</head>
<body>
<div class="group">
<div class="main-container">
<canvas
id="canvas"
height="500"
width="500"
style="border: 3px solid grey"
>
</canvas>
<script src="index.js"></script>
</div>
<div class="btn-container">
<div class="btnbox">
<button onclick="myfunction1()" class="btn" id="left">
<img src="left.png" />
</button>
<button onclick="myfunction2()" class="btn" id="right">
<img src="right.png" />
</button>
</div>
</div>
</div>
<script>
function myfunction1() {
moveleftbtn();
}

function myfunction2() {
moverightbtn();
}
</script>
</body>
</html>
Binary file added SinglePlayer - Games/Ball_Fall_Game/gameover.wav
Binary file not shown.
245 changes: 245 additions & 0 deletions SinglePlayer - Games/Ball_Fall_Game/index.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,245 @@
@font-face {
font-family: "chopsic";
src: url("Chopsic.ttf");
}

body {
margin: 0;
padding: 0;
background-image: url("bg.gif");
overflow-y: hidden;
overflow-x: hidden;
}

.btn img{
border: 3px solid whitesmoke;
}
@media screen and (width:280px){
#canvas{
height: 250px;
width:250px;
}

.group {
display: flex;
flex-direction: column;
justify-content: center;
}

.main-container {
font-family: chopsic, serif;
font-size: 4vh;
justify-content: center;
align-items: center;
color: antiquewhite;
width: 100vw;
height: 75vh;
border: black 1px solid;
display: flex;
}

.btn-container {
display: inline-block;
justify-content: center;
}

.btnbox {
display: flex;
width: 100vw;
justify-content: center;
}

.btn {
background-color: transparent;
padding: 15px;
justify-content: center;
align-items: center;

}
}

@media screen and (min-width:281px) and (max-width:500px) {
#canvas {
height: 300px;
width: 300px;
}

.group {
display: flex;
flex-direction: column;
justify-content: center;
}

.main-container {
font-family: chopsic, serif;
font-size: 4vh;
justify-content: center;
align-items: center;
color: antiquewhite;
width: 100vw;
height: 75vh;
border: black 1px solid;
display: flex;
}

.btn-container {
display: inline-block;
justify-content: center;
}

.btnbox {
display: flex;
width: 30vw;
padding-left: 140px;
justify-content: center;
}

.btn {
background-color: transparent;
padding: 15px;
justify-content: center;
align-items: center;

}

}

@media screen and (min-width:501px) and (max-width:850px) {
#canvas {
height: 500px;
width: 500px;
}

.group {
display: flex;
flex-direction: column;
justify-content: center;
}

.main-container {
font-family: chopsic, serif;
font-size: 4vh;
justify-content: center;
align-items: center;
color: antiquewhite;
width: 100vw;
height: 75vh;
border: black 1px solid;
display: flex;
}

.btn-container {
display: inline-block;
justify-content: center;
}

.btnbox {
display: flex;
width: 60vw;
padding-left: 140px;
justify-content: center;
}

.btn {
background-color: transparent;
padding: 15px;
justify-content: center;
align-items: center;

}

}

@media screen and (min-width:851px) and (max-height:850px) {
#canvas {
height:600px;
width: 600px;
}

.group {
display: flex;
flex-direction: row;
justify-content: center;
padding: 0px;
}

.main-container {
font-family: chopsic, serif;
font-size: 4vh;
justify-content: center;
align-items: center;
color: antiquewhite;
width: 50vw;
height: 90vh;
padding: 80px;
border: black 1px solid;
display: flex;
}

.btn-container {
display: flex;
justify-content: center;
align-items: center;
height:90vh;
}

.btnbox {
display: flex;
justify-content: center;
}

.btn {
background-color: transparent;
padding: 15px;
justify-content: center;
align-items: center;

}

}

@media screen and (min-width:851px) and (min-height:851px) {
#canvas {
height: 600px;
width: 600px;
}

.group {
display: flex;
flex-direction: column;
justify-content: center;
}

.main-container {
font-family: chopsic, serif;
font-size: 4vh;
justify-content: center;
align-items: center;
color: antiquewhite;
width: 100vw;
height: 75vh;
border: black 1px solid;
display: flex;
}

.btn-container {
display: inline-block;
justify-content: center;
}

.btnbox {
display: flex;
width: 60vw;
padding-left: 140px;
justify-content: center;
}

.btn {
background-color: transparent;
padding: 15px;
justify-content: center;
align-items: center;

}

}
Loading

0 comments on commit 14de412

Please sign in to comment.