Puppy matching game. Match as many groups of three or four puppies before the time is out.
1.UX
2.Features
4.Testing
6.Credits
As a user I would like to: | So that I could: |
---|---|
Easily understand the purpose of the page | Learn how to play and play the game |
Use an aesthetically pleasing site | enjoy my user experience |
Have instructions to play the game | have a better user experience |
Easily navigate the site | quickly find what I need |
Play the game in different screen sizes | I can use different devices |
Be able to find easily the contact information | I can send a message easily |
Play the game in touch screens | play on a phone or tablet devices |
Be able to contact the site owner | I can communicate with them |
Have a timer when playing the game | improve my score practicing with the same amount of time |
Easily replay the game after finish it | have a better user experience on the game |
As the site owner I would like to: | So that the users: |
---|---|
Offer an site that is easy to navigate | Can enjoy the game |
Use an aesthetically pleasing site | Have an easy experience |
Provide an easy way to contact me | Give feedback or ask questions |
The wireframes for this project can be found below:
- The aim during the design and development process was to make the game simple and easy for the user to play it.
- All pages follow the same style and color palette, simple and easy to navigate.
- The navbar on top of the page is static and have the icons linked to the main site and the contact site. It also has the logo. It's responsive on smaller devices.
- The home page has two buttons one to play that will take the user to that side of the games and a "How to play" one that opens a modal to view the instructions.
- The game site has the navbar, a score section, as well as the game grid with the puppies.
Single page with the navigation bar with a home and a contact button on the top and two buttons in the middle of the page, one to open the game and another one to read the instructions. This page is a modal that is covering the game until the users press the "Play" button.
This page has a modal on top of it that disappears once the "Play" button is clicked. It is a square with random puppies that has to be grouped in 3 or 4 of the same type to disappear. Once they disappear, some new appears from the top of the page and the score sections is updated.
On top of the page the user can find two buttons to reload the home page or go to the contact page.
The contact page has three boxes with name, email, question and button to submit a question. Once the question is submitted an alert will open showing that the message was sent.
Using Colorhunt.co I chose a palette with complementary colours that could be found in different sites:
#fff
- h1, background in the instructions, score, footer.- Gradient from the right of
#7f53ac
and#657ced
- Background of the page and the modal. #c7a1f5
- Icons and buttons hover on the icons.#ccc
- Border of the button elements.#ffffff
- Game board background color.
For the logo and the Score I used "Press Start 2P" and for the rest of the site "Poppins". Both imported from Google fonts. Used on the Universal selector to format the entire site.
I used as Favicon one of the images used for the game. I converted it using Favicon.io.
-
Feature 1 - Landing page with two buttons that allows the user to pick between two options Play or How to Play.
-
Feature 2 - Modal that covers the game.
- Built with HTML, CSS and JS the modal disappears and let the user play the game.
- Pressing the play button set the score to 0 as well.
-
Feature 3 - Allows the user to click on "How to Play".
- Built with HTML, CSS and JS once the button is clicked a modal appears with the instructions of how to play the game.
-
Feature 4 - Two buttons on the top of the page, one to return to the main page and another to go to the contact page.
- The buttons are SVG images and link with the Home page and contact page.
-
Feature 4 - Allows users to send a message to the site owner.
- Built with HTML, CSS and JS and used EmailJS API to send a message to the site owner.
-
Feature 5 - Let the user replay the game from the game over screen.
- Replay button displayed usually in games that let the user play again.
-
Feature 6 - Timer.
- 30 seconds timer that when is over triggers the game over modal, showing the score of that game, restart and home buttons.
- Score board with a ranking of players.
- HTML - to build the structure of this site.
- CSS - to style and fix media queries and the max width.
- JavaScript - to build the game and add interactivity with buttons and send messages to the site owner.
- Google Fonts - used for fonts on the site.
- Hover.css - used for animation effects on social icons and various buttons throughout the site.
- Google Fonts - Import the fonts used ont he site.
- Hero Icons - Site icons.
- TailwindCSS - For inspiration on the styles for the site.
- VSCode - used as IDE for the project.
- Git - used for version control.
- Github - used to host repository and to generate the live website.
- Github projects - used to track all the tasks, bugs and issues.
- Balsamiq - used to create the wireframes.
- Chrome Developer Tools - used to test and optimize the site.
The test performed can be found at the testing.md file.
My site is hosted on GitHub pages, deployed directly from the master branch. The steps to complete the hosting process.
- Log into GitHub.
- Pick the repository.
- Go to settings.
- Scroll down to GitHub Pages section.
- Select as a source "master branch".
- The page refreshes automatically and the project is deployed.
- The URL for the page will be public automatically.
To run this code locally, you can clone this repository directly into the editor of your choice by following the steps below:
1.Go the Github repository that you wish to clone:
- Click Code with the down arrow so the modal will open.
- Click on the clip icon to copy the repository.
2.Open Terminal.
3.Change the current working directory to the location when you want the cloned directory.
4.Paste the link previously copied or type the following into your Terminal: git clone [https://github.com/CarolinaCobo/puppy-rush.git].
5.Press Enter to create a local clone.
To cut ties with this GitHub repository, type git remote rm origin into the terminal. For more information regarding cloning of a repository click here.
This project JS part was following Ania Kubow tutorial in how to build a Candy Crush style game. I made some changes on the game and built the CSS and HTML pulling information from different sites referenced below in the acknowledgements.
- The color palette used in this site was obtained from Colorhunt.co
- The favicon for this site has been resized in Favicon.io
- The Library Tailwind has been used for inspiration on styles.
- Icons are from Hero Icons.
- The icons have been made for this project by a designer.
I received inspiration for this project from:
- Ania Kubow
- MDN Documentation
- W3Schools
- CSS-Tricks
- StackOverflow
- Codú Community
- FreeCodeCamp
- Anna Greaves
- Bernardo Castilho
- Codú Community
- My mentor Precious Ijege
- Niall Maher
- Code Institute Slack Community