Giter VIP home page Giter VIP logo

star-trek-tng-trivia-game's Introduction

StarTrek: TNG Trivia Game

A trivia game for lovers of Star Trek: The Next Generation (TNG). Engage!

Project Preview

image

URL

My deployed game can be found at this link.

About This Game

Lovers of Star Trek are in good company. Self-professed fans include Barack Obama, Rihanna, and Tom Hanks. This is a trivia game consisting of ten TNG-based questions, and was built using HTML, CSS and JavaScript. Star Trek: TNG is my favorite series in the Star Trek franchise, and for my first independent, from-scratch project in the General Assembly: Software-Engineering Immersive Course, I decided to indulge my love of all things Trek by building this game. The questions were written by me. I do not own any of the rights to Star Trek.

Technologies Used

The technologies used here are HTML5, CSS and vanilla JavaScript. The code was passed through the HTML5 Validator and CSS validator and passed both tests. Custom Star Trek-themed fonts were downloaded from Font Squirrel.

Installation Instructions

Clone/download the repository to your machine. Then open the index.html file in a browser (preferably Google Chrome) to play the game.

Wireframes

My wireframe drawings can be found here link.

Problems

Initially I wrote the game logic using alerts to give the user answer feedback. When I switched over to an overlay div with answer feedback, it was tricky to get the game logic to work with the updated method of feedback. I ran into a bug that would start skipping questions after the first two questions. Though I fixed that, I then had an issue where the question would switch before the user clicked out of the answer feedback overlay. To solve these issues and have the game progress the way I wanted to, I ended up mostly re-writing the Javascript with my new answer feedback, and found success by starting the game logic over. In the future, I would flesh out HTML and CSS first, then add in the game logic in JS.

Future Additions

Some future additions that I would like to implement:

  • A timer that gives the user more points for answering questions sooner.
  • A score card that gives the user a different GIF for each score range.
  • A larger pool of questions that are then randomly assigned each time a user plays the game, so that users can play the game multiple times and save their progress.
  • Mobile responsive design

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.