Giter VIP home page Giter VIP logo

horrormovietrivia's Introduction

Horror Movie Trivia

To make this game, I did the following:

  • I started by creating all the files for the project: index.html, style,css, movietrivia.js, and README.md.

  • I pseudocoded what I needed to do to make this code work.

  • Then, I did some research and found some good trivia to add.

  • I created the general layout of the html page and added the DOM elements to connect it to the JavaScript.

  • Next, I started to add the CSS (the background colors for the answer buttons refused to work like I wanted).

  • I then set global variables that I would need for the different aspects of the project: time, score, etc.

  • I then got started on the functions, which was the hardest part by far:

    • Start button event
    • Start game (with many if else statements to hide elements on the page)
    • Setting and showing questions (broken)
    • Getting the right answers and checking if they were correct
    • Next button event
    • Clearing old answers
    • Countdown timer
    • Scoreboard (incomplete)

Problems that I had

The main problems that I had were the score counter (which meant I was never able to get to the scoreboard) and the questions appearing.

When I first started, I was able to get the questions to appear by random and in the div that I designated (see image). But as soon as I tried to validate the answers and get the next button to work, the questions went away and I'm not sure how to undo what I did without the whole thing unraveling.

No matter what I tried for the score, it wouldn't work.

horrormovietrivia's People

Contributors

jonayahj avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.