-
Notifications
You must be signed in to change notification settings - Fork 838
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4284 from Aksshay88/main
Added Grab The carrot
- Loading branch information
Showing
6 changed files
with
1,677 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Grab The Carrot | ||
|
||
## Description | ||
The Grab The Carrot is a simple web-based game designed to test and have fun . The game presents a sequence of obstacle which the players need to overcomes . The Players need to Grab The Carrot to survive the game | ||
|
||
# Functionality | ||
- Displays a sequence of obstacles | ||
- Increases the Highscore once the players Grab The Carrot. | ||
- Simple and intuitive user interface. | ||
- You can track your current score. | ||
|
||
## Usage | ||
- Open the game by opening index.html in a web browser. | ||
- Click the `Start Game` button to begin. | ||
- A sequence of numbers will be displayed for a short period. | ||
- Memorize the sequence and enter it into the input field once it disappears. | ||
- Click the "Submit" button to check your input. | ||
- If you recall the sequence correctly, a new number will be added to the sequence, and the game continues. | ||
- If you input the sequence incorrectly, the game will end and display the correct sequence. | ||
|
||
## Files | ||
- `index.html`: The main HTML file that sets up the structure of the game. | ||
- `styles.css`: The CSS file that styles the game. | ||
- `script.js`: The JavaScript file that contains the game logic. |
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,32 @@ | ||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>Grab the Carrot Game</title> | ||
<link rel="stylesheet" href="styles.css" /> | ||
</head> | ||
<body> | ||
<div id="world"> | ||
<div id="player"></div> | ||
<div class="carrot"></div> | ||
<div class="hedgehog"></div> | ||
</div> | ||
<div id="gameoverInstructions">Game Over</div> | ||
<div id="dist"> | ||
<div class="label">distance</div> | ||
<div id="distValue">000</div> | ||
</div> | ||
<div id="instructions"> | ||
Click to jump<span class="lightInstructions"> | ||
— Grab the carrots / avoid the hedgehogs</span | ||
> | ||
</div> | ||
|
||
</div> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/three.js/r110/three.min.js"></script> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/latest/TweenMax.min.js"></script> | ||
<script src="script.js"></script> | ||
</body> | ||
</html> | ||
|
Oops, something went wrong.