Skip to content

Commit

Permalink
Merge pull request #4284 from Aksshay88/main
Browse files Browse the repository at this point in the history
Added Grab The carrot
  • Loading branch information
kunjgit authored Jun 10, 2024
2 parents 10d9a99 + 32a5d41 commit 6bd6fbe
Show file tree
Hide file tree
Showing 6 changed files with 1,677 additions and 0 deletions.
24 changes: 24 additions & 0 deletions Games/Grab_The_Carrot/README.md
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.
32 changes: 32 additions & 0 deletions Games/Grab_The_Carrot/index.html
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>

Loading

0 comments on commit 6bd6fbe

Please sign in to comment.