-
Notifications
You must be signed in to change notification settings - Fork 164
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
65fa413
commit 3723a6f
Showing
16 changed files
with
686 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
|
||
} | ||
|
||
} |
Oops, something went wrong.