Giter Site home page Giter Site logo

drag-quiz's Introduction

Drag Quiz

The best and most beautiful test of Drag knowledge, because when it comes to Drag, the look matters.


Introduction

When I was tasked to create a game for IronHack, the first thing that popped into my mind was trivia. I personally love trivia because I love learning random facts. But usually trivia games are very ugly and about boring things. So I decided to create a trivia game about the least boring thing I know.....Drag Queens. Take a look at my presentation here

Demo

  • Play the game live here

Development

Luckily for me trivia games are not as complex as other games because the base logic is pretty easy to comprehend. So because I wanted the game to be nicely designed, modern and responsive, I started with design first.

  • I used Adobe Xd to create a the layout of all the cards. Check them out here
  • I then used Adobe Xd's prototype feature to link all the cards together to mirror the game's real flow.
  • After that I then had to create the consistent background and basic card style layout that would be used throughout all of the game.
  • After that was done, I went and created all of the different card layouts for each situation in HTML and CSS (using Sass).
  • Then I took a break from the design to just create a simple quiz with a few questions to make sure I had a solid simple logic I could expand upon.
  • Once the quiz logic was working I went back to the created cards and used jQuery to decide when each card should be shown, to mimick the gameflow I had already protoyped.
  • After doing that, I realized a huge flaw in my design. There was no way to go back to the previous card unless you refreshed the site and started from the beginning. That is when I created a minimalist toggle button menu on the button to give the user the ability to jump to sections of the game.
  • Now that the card flow was working and I had all the designs, the fun part came of linking the two together.
  • I first had to expand upon the logic of the quiz. I had to create lives and a timer.
  • Then I started to link the questions to the already designed question cards.
  • This of course resulted in some display issues and glitches that were fixed after some trial and error.
  • With all question cards working, I then linked the correct and wrong cards, along with the game over cards.
  • I then tweaked the score to be linked to how quickly you answer the question. I also made the timer get shorter the more points you got.
  • The last thing I need to do is to randomize the order of the questions, and then repeat for multiple categories.

Built with

  • 375 lines of HTML
  • 725 lines of Sass
  • 365 lines of JavaScript
  • 72 lines of jQuery
  • Prototyping done with Adobe Xd
  • Styling done with Materialize
  • & lots of Google Searches

Bugs

  • Sometimes the quiz will start loading from the category screen after reset.
  • If you exit the game before finishing and try to start again, the timer will be buggy.

To-do

  • Randomize the order of the answers
  • Create the quizzes for the other categories
  • Create mix all deck option
  • Add timer animation
  • Clean up and restructure my code

drag-quiz's People

Contributors

philipwisner 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.