Skip to content

Richfletch92/Burger-Quest

Repository files navigation

Burger Quest | Burgernauts

Code Institute - Hackathon 1

Site example on multiple devices.

Click Here to view the Live Project.

Click here to view the Repository.

Meet the team

Table of Contents

About

Burger Quest is an interactive and engaging word-guessing game designed for players of all ages. The primary goal of the game is to guess the hidden word by selecting letters within a limited number of attempts. The game offers various difficulty levels to cater to different skill sets, making it both challenging and entertaining. The project was developed as part of a hackathon organized by Code Institute, with a focus on creating a fun and educational experience that helps improve vocabulary and spelling skills. The design is kid-friendly, featuring vibrant colors and playful animations to enhance the user experience.

User Value Explanations

  • Entertainment: The game provides a fun and engaging way to pass the time.
  • Challenge: Different difficulty levels offer varying degrees of challenge, keeping the game interesting.
  • Learning: Players can improve their vocabulary and spelling skills while playing.
  • Accessibility: The game is easy to understand and play, making it accessible to a wide audience.

Installation

  • Clone or download the repository.
  • Open the index.html file in your browser.

Dependencies

The game does not require external libraries. All styles and scripts are included in the project.

How to Play

  1. Open the game in your browser.
  2. Select a difficulty level (Easy, Medium, or Hard).
  3. Guess letters by either:
    • Clicking buttons on the on-screen keyboard.
    • Typing a letter in the text box and clicking "Submit."
  4. The game provides feedback:
    • Correct guesses reveal the letter(s) in the word.
    • Incorrect guesses decrease your remaining attempts.
  5. Win by guessing the word before running out of attempts.
  6. Lose if attempts reach zero without guessing the word.

Design

  • Colours: List the colours used in your project.

    • Main Background: #B1F0F7
    • Game Background: #F5F0CD
    • Title Colour: #fca644
    • Text Colour: #333
    • Button Colour: #37bdf7
    • Button Hover: #B1F0F7
    • Button Text: #FFF8DE
    • Button Text Hover: #727272
    • Reset Colour: #fca644
    • Reset Hover: #ffcd94
    • Keyboard Colour: #37bdf7
    • Keyboard Hover: #B1F0F7
  • Fonts: List the fonts used in your project.

  • Images: All images were designed and created by Jo. The designs are aimed towards kids to provide a fun and interactive experience.

General Features

  • Difficulty Levels: Easy, Medium, and Hard with varying word complexity and attempts.
  • Interactive Keyboard: Clickable on-screen keyboard to make guesses.
  • Text Entry: Option to type guesses via a text box.
  • Animations: Floating burger and cat animations to enhance gameplay.
  • Hint Feature: Reveal a letter to assist with challenging words.
  • Score Tracking: Tracks wins and losses.
  • Reset Option: Restart the game at any time.
  • Responsive Design: Optimized for various screen sizes.

Furture Features

  • Different image designs depending on level difficulty
  • Count down timer which changes length depending on difficulty
  • Animation for balloons popping
  • Background images for better perception
  • Multiplayer Mode: Add a mode where players compete or collaborate.
  • Additional Levels: Include more difficulty levels or themed word lists.
  • Leaderboard: Save and display high scores.

JavaScript Functions

  • startGame: Initializes the game by setting the difficulty, selecting a random word, and resetting game variables.
  • setDifficulty: Sets the number of attempts based on the selected difficulty level.
  • getRandomWord: Returns a random word from the word list based on the selected difficulty level.
  • displayWord: Displays the current state of the word with guessed letters revealed and remaining letters hidden.
  • displayKeyboard: Displays the on-screen keyboard for letter selection.
  • handleGuess: Handles the player's guess from the on-screen keyboard.
  • handleGuessText: Handles the player's guess from the text box.
  • checkGameStatus: Checks if the player has won or lost the game.
  • updateCatImage: Updates the cat image based on the number of remaining attempts.
  • toggleHint: Toggles the display of the hint.
  • showHintButton: Displays the hint button after consecutive wrong guesses.
  • getHint: Provides a free letter hint to the player.
  • handleWin: Handles the win scenario by updating the win count and displaying a popup message.
  • handleLoss: Handles the loss scenario by updating the loss count and displaying a popup message.
  • disabledDisplayKeyboard: Disables the on-screen keyboard after the game ends.

AI Overview

  • Ai was used to generate the words for the game and hints.
  • It was also used to bug check code when having problems.
  • It was used to help create JavaScript functions.

Technologies Used

  • HTML5: For structuring the content.
  • CSS3: For styling the website.
  • JavaScript: For Game logic and interactivity.
  • Google Fonts: For font styles.
  • Co-Pilot: For code generation and debugging.
  • Chat-GPT: For Q & A and code generation.
  • favicon.io: For creation of favicons.

Validation

HTML

Validation Image

CSS

CSS Validation

JavaScript

JavaScript Validation

Wireframes

Initial Ideas Wireframes

Initial Concept Second Concept Team Favourite Concept

Gameplay Wireframes

Gameplay Concept 01 Gameplay Concept 02 Gameplay Concept 03 Gameplay Concept 04 Gameplay Concept 05

Mobile Layout Wireframe

Mobile wireframe

Lighthouse Performance

Mobile

Mobile Lighthouse Performance

Desktop

Desktop Lighthouse Performance

Credits

  • Balloon pop sound Link

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •