Skip to content

Trivia game using JavaScript for the logic and jQuery to manipulate HTML

Notifications You must be signed in to change notification settings

jcqlng/Gamer-Trivia

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 

Repository files navigation

🕹️ Gamer Trivia 🕹️

Test your knowledge of video games with this 10 question trivia game!

📝 Description 📝

Link to the site: https://jcqlng.github.io/Gamer-Trivia/

This application is a video game themed trivia questionnaire. The user will have 30 seconds per question to finish the quiz. The game ends when the time runs out and the page will reveal the number of questions that users answer correctly and incorrectly. The user is allowed to pick only one answer per question. If the user answer incorrectly, the app will display a message like "oh no you got it wrong! The correct answer was" and show the giphy of the correct video game reference. If out of time it will alert you that you are and tally it under the "un-answered" section of your score.

The goal of the application is to utilize my skills in JavaScript for the logic and jQuery to manipulate HTML.

Gamer-Trivia

⌨️ Webpage Components ⌨️

🕷️ Bug Fixes 🕷️

  • July 31,2020 -- When the user completes the game, I noticed the counter would reset to 0 which gave the user no time to answer thus having an automatic loss. I went in the app.js file, looked at my reset function and it was in fact set to 0. I changed it to 30 seconds and it officially worked!
// resets the game
    reset: function(){
        game.currentQuestion = 0;
        game.counter = 30;
        game.correct = 0;
        game.incorrect = 0;
        game.unAnswered = 0;
        game.loadQuestion();
    },
}

🔗 Links and Resources 🔗

  • For help with the trivia questions:
  • Resources for the .gif images :
  1. Mario

  2. GameCube

  3. Fortnite

  4. Pokemon

  5. Mario & Luigi

  6. Tetris

  7. NES

  8. Madden

  9. World of Warcraft

  10. Spyro