Skip to content

My second project for Code Institute. My thought was to make a game for kids where they can train their brain and have fun at the same time. Super Mario is popular in all ages so the game fits both adults and kids.

Notifications You must be signed in to change notification settings

Kimskogfelter/Super-Mario

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

72 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Welcome to my second project

SUPER MARIO - THE MEMORY GAME

picture of the mockup of the website

PURPOSE


My first thought when starting this project was to make a fun and easy game for my two toddler boys who love Super Mario at the moment. And what game can be better then a memory game that includes pictures of different creatures from the Super Mario game. A memory game fits everyone who wants to train their memory and speed skill. Both kids and adults can play due to its easy design and mecanics. The user need to find two pictures of the same creature to score a point. The game starts as soon as the user has clicked on the "lets go" button on the starting page that takes the user to the actual game page. The game got a timer that continues to count until the user have found all the matching cards. The game also got a "moves" tracker who shows how many moves a user has taken during the game.

UX DESIGN


USER STORIES

  • As a first time user

    • I want to be intriged to play the game
    • I want to feel amused by the game
    • I want to feel exited when playing the game
    • I want a break from everything else around me and get a quick brain workout
  • As a returning and frequent user

    • I want to get a break and get a quick brain workout

All users are enabled to play both on the computer and on their mobile phones

STRUCTURE


STARTING PAGE

  • The first page a user enters is the starting page. It has the heading text "Super Mario Memory Game" and a picture of Mario riding on Yoshis back with a little star friend next to them.

picture of the starting page

GAME AREA PAGE

  • The game area contains the memory game. It got 12 different cards that the user can click on and pair them in order to continue and win the game.

picture of the game area page

WINNING PAGE

  • When the user wins the game a window pops up that says congratulations. The user can then choose to click on a "play again" button to play again.

picture of the winning page

FEATURES


STARTING PAGE

  • HEADING

    • The heading text is at the top of the website and contains the text "Super Mario - Memory Game". Its purpose is to make the user understand what type of game it is that they are going to play.

picture of the heading on the starting page

  • IMAGE

    • The image of Super Mario on Yoshi is under the heading to make the user understand that the game is about Super Mario

picture of the image with Super Mario and Yoshi on the starting page

  • "LETS GO" BUTTON

    • Under Super Mario and Yoshi is a button that says "Lets go!". If the user click on the button it takes them to the game page.

picture of the "lets go" button on the starting page

GAME AREA PAGE

  • MOVES SECTION

    • The memory game has a section that counts how many moves the user does during the game

picture of the moves section

  • TIMER SECTION

    • The timer starts as soon as the user press "play" and stops when the player completes or pause the game.

picture of the timer section

  • MEMORY CARDS

    • The memory cards is used to play the game. The user click on one to switch the card and then chooses another one in hope that they are the matching pair.
    • The front of the cards is the question block from the Super Mario game.

picture of the front memory cards

  • When a user click on one card a creature from the Super Mario game appears.

picture of a clicked memory card

  • RESTART BUTTON

    • At the bottom of the game area is a restart" button which the user can click on to restart the game.

picture of the "play/pause" button

  • WINNING DIV

    • When a user wins the game a div pops up with the text "You made it! Congratulations!"
    • A button appears below the text that says "Play One More Time" which the user can press to restart the game and play again

picture of the content that pops up when the user wins the game

COLOR SCHEME


  • The color scheme through both pages is a #red background and #white text with a #black border around the text. The buttons to start/pause the game got a grey background color.

TECHNOLOGIES


WIREFRAMES


STARTING PAGE

Starting page made in wireframes

GAME PAGE

Game page made in wireframes

WINNING PAGE

Winning page made in wireframes

TESTING


  • I tested the website in Chrome, Firefox and Edge browser to see that all pages loaded and that every button and function was working correctly.
  • The site is also responsive which I tested in google chromes devtools by selecting different screensizes and test each function
  • I tested that all text is easy to read and to understand
  • The code got valified through both HTML, CSS and JS validators

BUGS

  • when I was finishing the page i noticed that the content on the index page wasnt centered on all devices. To fix the issue i added min-height to both the html and body, and then the index-body which solved the issue because the body height tas stuck to the center of the page before that.
  • saw that when you press the "restart game" button when you have pressed one memory card and dont have pressed another one to be compared with, that card is "used" when you have restarted the game and is compared to the first card you choose. Unfortunately I dont got the time to try and fix that issue.

LIGHTHOUSE

I also tested the website in Lighthouse with the result below

  • Starting Page - Mobile version

lighthouse result for starting page, mobile version

  • Starting Page - Desktop version

lighthouse result for starting page, desktop version

  • Game Page - Mobile version

lighthouse result for game page, mobile version

  • Game Page - Desktop version

lighthouse result for game page, desktop version

DEPLOYMENT


This project was deployed to Github.com. The following steps shows how you do it:
  1. Log in to your Github.
  2. Go to the Super Mario repository in Github: [https://github.com/Kimskogfelter/Super-Mario]
  3. Select Settings in the repository navigation menu at the top.
  4. Select Pages at the left handside of the website.
  5. Choose: Deploy from a branch as Source.
  6. Choose: Main as branch and /root as folder and press save.
  7. Wait a few minutes and press the Code menu to the top left.
  8. At the right handside go to Deployment.
  9. Then press the picture of the deployment icon on github to go to the live website.

ISSUES


  • Ive been having a really hard time to understand javascript. Its been alot happening at home during this time with the kids having to be home due to us moving to a new home and my husbands mom dying. The funural was 1 december so I havent been having the time to finish the project as I would like to. Im aware that I can have used to little own code, hopefully thats not the case.

CREDITS


MEDIA

CODE

All the thanks to the lovely students on slack for helping out when needed and my mentor Ronan for being so supportive and helpfull

About

My second project for Code Institute. My thought was to make a game for kids where they can train their brain and have fun at the same time. Super Mario is popular in all ages so the game fits both adults and kids.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages