Giter VIP home page Giter VIP logo

sidhowes-invasion's Introduction

"Invasion" Javascript memory game

This project is a Alien outer space themed interactive memory game. This memory card game can be played on either desktop, ipad/tablet and iphone/mobile.

You can view the live website here - https://sidhowes.github.io/Invasion/

Desktops

desktop wireframe

UX

  • Once game has loaded the user will be on the home page with alien themed pictures and moving lights.
  • The user should be able to click on the "how to play" and a pop up will appear with instructions on how to play the game.
  • The user should be able to click on the "x" in the top right corner of the pop up in order to hide the instructions.
  • The user should be able to access the game screen once clicked on "play".
  • Now on the game page the user will notice the alien theme is used throughout the game.
  • The user should be able to click on the cards to flip the cards over in order to match another card.
  • The user will notice that once two cards have matched, they will stay flipped and slightly moving so that it is clear that the cards have matched.
  • The user will notice that if cards do not match they will flip back over and the game will continue until all cards have been matched.
  • The user should be able to flip the cards in the least amount of flips and within the 60s timer. For the best score it would be the least amount of flips within the quickest amount of time.
  • The user should be able see there final score and time at end of the game in order to try and beat it in the future.
  • The user should be able to click on the "New game" button in order to restart the game.

Wireframes

Home page desktop

desktop wireframe

Game page desktop

desktop wireframe

Home page ipad

ipad wireframe

Game page ipad

ipad wireframe

Home page iphone

iphone wireframe

Game page iphone

iphone wireframe

Features

  • "How to play" pop up - allows the user to acess information on the game Instructions.
  • Memory Game - allows users to click on the cards and play with the game.
  • New Game - allows users to start a new game anytime.
  • Countdown timer - Count down from 60s to 0s to let the user know how fast they completed the game.

Features for the future

  • Highscore - A highscore table to show previous scores ranked from best to worse.

Technologies Used

Languages

  • HTML: The language used for the inital content of website.
  • CSS: Cascading style sheet language, to style the project (to make the project come alive)
  • Javascript: the language used a give the project interactivity.

Tools

  • Balsamiq wireframes : Used to create the wireframes at the planning UX stage of the project.
  • Github: Used to host the repositories for the website.
  • Google Fonts: Used to get fonts used for my text Lato and headings Sriracha.
  • Font Awesome - Used font awesome icons to style the card back and card front of the memory game.
  • jQuery - jQuery was used to open and hide the pop up window and to remove the visible class in my overlay. Jquery was used alongside Javascript throughout the project.
  • W3Cschools css validator - Validate my css code to make sure there are no errors.
  • W3Cschools html validator - Validate my html code to make sure there are no errors.
  • beautifytools javascript validator - Validate my javascript code.
  • Bootstrap - used to create my Modal.

Testing

Using Chrome developer tools throughout the project to test how the the project looks on desktop and on smaller devices i.e mobile device. Whenever a change was made I used the selector tool and open up the browser to see that change and to see how it would look. Another testing method was the inspect selector on the opened browser and although it does not save the changes made while using this testing method it is a quick way to see how elements look when moved around. I also tested the game myself by playing the game a number of times to make sure the game functions as intended. Lastly i used: HTML and CSS to validate via W3C's free utility at https://validator.w3.org/. and the JavaScript file was validated via https://codebeautify.org/jsvalidate.

Problems encoutered when testing

A problem that was encoutered and solved during the project was when I wanted the cards that have been matched to spin they would not stay facing card front but flipped back to card back. In order to resolve this I rotated the cards on the "Z" axis which this did reslove the issue and cards stayed facing card front.

Deployment

My website is hosted on Github pages, following these steps to deploy the website.

Github pages

  1. Navagate to my gitbug respository - https://github.com/Sidhowes/Invasion
  2. Click on settings top right of the page.
  3. Scroll down to Github pages.
  4. click on the dropdown menu ofSource.
  5. Select master branch
  6. Refresh your page.
  7. A green box with a tick is now shown to show that it has been published.

Credits

Content

  • Javascript Code for pop up "How to play" box - w3schools
  • CSS Code for pop up "How to play" box - w3schools
  • Code inspiration for a flip counter - stack overflow

Media

Acknowlegements

  • Code for my Modals from Bootstarp
  • Help and guidance from my mentor Akshat Grag.
  • inspiration from:

sidhowes-invasion's People

Contributors

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