Code institute Project portfolio 2 Cars Game CI_PP2_CG Is a web page developed to be a Retro car game by using of different methods and technics, like animations in CSS and algorithms in JS to make it interactive.
-
HTML "HTML is the standard markup language for documents designed to be displayed in a web browser. It can be assisted by technologies such as Cascading Style Sheets (CSS) and scripting languages such as JavaScript. [1] "
-
CSS "Cascading Style Sheets (CSS) is a style sheet language used for describing the presentation of a document written in a markup language such as HTML. CSS is a cornerstone technology of the World Wide Web, alongside HTML and JavaScript.[2]"
-
JS "JavaScript, often abbreviated JS, is a programming language that is one of the core technologies of the World Wide Web, alongside HTML and CSS. As of 2022, 98% of websites use JavaScript on the client side for web page behavior, often incorporating third-party libraries. All major web browsers have a dedicated JavaScript engine to execute the code on users' devices. .[3]"
- Project Goals
- User Experience
- Design
- Technologies Used
- Features
- Testing
- Bugs
- Exeptions
- Deployment
- Credits
- Contributing
- License
- Acknowledgements
- Look for a free vintage game.
- Look for a straightforward website.
- Enjoy a straightforward game.
- Score some points.
- A brief guide explaining how to play the game.
- Create a straightforward, time-tested game to showcase some abilities.
- Offer a manual or instructions on how to play the game.
- Design a game that includes a navigation bar and feedback.
- The general public.
- People looking to play a free classic game.
- Kids.
- Responsive interactive page design.
- A page with simple and straightforward navigation.
- Instructions are provided with clear information.
- Social media and links also function.
- A responsive layout that functions on various screens.
First time user:
- Desires simple navigation.
- Is interested in playing.
- Desires to play a traditional game.
- Desires to solicit comments or opinions.
- Is curious about social media.
- Be familiar with the game's rules
As a returning user, We want:
- be aware of the result and improve.
- A website where you may unwind and play a simple game.
- Offer feedback or file bug reports.
- Locate the page's social media accounts.
- Use a website with a straightforward navigation bar.
As the site owner, we want:
- Participants who enjoy the game.
- A responsive and interactive page that is clear.
- Simple method for contacting us and providing feedback.
- Give the players a sense of being in a traditional setting.
The game was created with the intention of evoking memories of vintage 16-pixel games and was heavily influenced by its vintage user interface.
Using the Visual Studio colors setting, the color tones were specifically selected to match the concept and to a straightforward and approachable style.
Was searched for a friendly font and came upon ROBOTO from GOOGLE, which has been utilized in smartphones.
The most common font used on those platforms, which account for the majority of data flow, was used.
Following the principles of UXD (user experience design), the page's structure was made to be fluid and simple to read. To determine the sort of design used in contemporary food pages, research was conducted at the most well-liked Classic games. the following hues associated with the theme (Classic Car game)
The website was composed of five pages:
- The home page, which includes the primary article, contact information, and social media links.
- Game page where the interactive platform that interacts with the main page is located and where the level and vehicle are chosen.
- The game's instructions page, which enables visitors to play, sadly does not work for blind persons.
- A 404 page, which is created for every broken link, prompts the user to rewrite the page.
- The page with the active form is called "Contact Us," and it provides information to us via email so we may read reviews and make improvements to the website.
- HTML5
- CSS
- Java Script
- Visual Studio Code
- Git
- GitHub
- Gitpod
- Balsamiq
- Google Fonts
- W3schools Colors
- Favicon.io
- ion icons
The page was created and influenced by old-school user interface (UI) games, where colors were blended and changed periodically to try to give users a sense of being in an antiquated setting while using contemporary visuals.
Three HTML components make up the section. The first is the home page, where the user made the decision to play or read the content, the second is the contact us page, where the user can write us with their thoughts by email, and the third is the page with the instructions.
- User stories covered: 11
Four different car styles made use of the car selector.
- User stories covered: 13
Difficulty consist in: Easy is five ways of automobiles, and hard is ten. These ways were used to expand or contract the stages.
- User stories covered: 13
This function was designed to resemble older games in which you just clicked "play" to begin the game.
- User stories covered: 13
The footer is a straightforward part where social networking connections are made with the website in an easy-to-understand manner.
- User stories covered: 5
The form can be utilized by the user in a variety of ways, including sending feedback, reporting bugs, and sharing recommendations.
- User stories covered: 9
The form submission modification was made to make the website more dynamic. The system changes the interface and displays a graphic to inform the user that the message has been sent.
- User stories covered: 9
The instructions that describe the game's dynamics are included in this section. with a graphic showing each interactive element in the user interface and text explaining it.
- User stories covered: 6
A canvas with a background of the way is part of the game's user interface. Using CSS animation, it is animated to give the impression that it is moving. The player's EGO car and the other opponents' cars are the small components inside, and these divisions can be manipulated by JS by shifting their locations in the area.
- User stories covered: 4,2
The controls consist of two straightforward arrows that attempt to replicate the joystick and three buttons found on older machines.
- User stories covered: 3
The Validator used was W3C Service to validate the HTML of the webpage, the entire project pass with no errors by use of some tools.
W3C's primary activity is to develop protocols and guidelines that guarantee long-term growth for the Web. W3C's determine key parts of what makes the World Wide Web activity. W3C was used to validate the CSS style of the whole page
HintJs was used to validate the JS files, where the code was placed, the errors were rectified, and the actual unneeded variables were deleted. The software detects too many functions like unused variables.
The WAVE WebAIM web accessibility evaluation tool was used to ensure the website met high accessibility standards. All pages pass with 0 errors.
Google Lighthouse's Chrome Developer Tool was used to test the website's performance.
![]() IE / Edge |
![]() Firefox |
![]() Chrome |
![]() Safari |
![]() Opera |
---|---|---|---|---|
IE11, Edge | last 2 versions | last 2 versions | last 2 versions | last 2 versions |
- Desires simple navigation.
Feature | Action | Expected Result | Actual Result |
---|---|---|---|
Navigation Bar | change pages | Fluid design | Works as well |
- Is interested in playing.
Feature | Action | Expected Result | Actual Result |
---|---|---|---|
Atractive desing | Call the atention of the user | Animations | Works as well |
- Desires to play a traditional game.
Feature | Action | Expected Result | Actual Result |
---|---|---|---|
Classic desing | Transport the player to the old environment game | Animation Background | Works as well |
- Desires to solicit comments or opinions.
Feature | Action | Expected Result | Actual Result |
---|---|---|---|
Form conected with email | Recibe the messages | Api jsemail | Works as well |
- Is curious about social media.
Feature | Action | Expected Result | Actual Result |
---|---|---|---|
Social media links | Open the social media | open blank page with the link | Works as well |
- Be familiar with the game's rules
Feature | Action | Expected Result | Actual Result |
---|---|---|---|
Instructions | Explain the rules | Images and text | Works as well |
- be aware of the result and improve.
Feature | Action | Expected Result | Actual Result |
---|---|---|---|
Report the score | Show the score at the end | New div appear on the screen | Works as well |
- A website where you may unwind and play a simple game.
Feature | Action | Expected Result | Actual Result |
---|---|---|---|
Simple UI | 3 button sections | Change conditions | Works as well |
- Offer feedback or file bug reports.
Feature | Action | Expected Result | Actual Result |
---|---|---|---|
Form Title | Message to explain it to user | Message and colors | Works as well |
- Locate the page's social media accounts.
Feature | Action | Expected Result | Actual Result |
---|---|---|---|
Footer | Open links in blank page | links with social media | Works as well |
- Use a website with a straightforward navigation bar.
Feature | Action | Expected Result | Actual Result |
---|---|---|---|
Navigation Bar wrapper | Put all items in a style | Wrap a List in one section | Works as well |
- Participants who enjoy the game.
Feature | Action | Expected Result | Actual Result |
---|---|---|---|
The Game | Dynamic game | Can move the car and can lose the game | Works as well |
- A responsive and interactive page that is clear.
Feature | Action | Expected Result | Actual Result |
---|---|---|---|
Fit the page to different screens | Fit content and style | Change dynamic sizes | Works as well |
- Simple method for contacting us and providing feedback.
Feature | Action | Expected Result | Actual Result |
---|---|---|---|
Submit method to send the form | Submit | Recibe at email | Works as well |
- Give the players a sense of being in a traditional setting.
Feature | Action | Expected Result | Actual Result |
---|---|---|---|
Almost all pictures are similar to classic games | Use pictures to decorate all | Images and text | Works as well |
Bug | Fix |
---|---|
Footer doesn't stay down | change position and HTML min size |
Contrast errors | was used animated colors to fix it |
Use different cars, they didn't appear | Set a default option |
Jshint detect function like unussed variables | Call them with event listener |
In Game.html was putted a script in the header for jsemail because, The mail doesn't work if the script is not in there.
- Open a profile at emailjs.com
- Add a new email service; the code will utilize the contact service ID
- Include a new email template; the code will use the contact form ID.
- In the integration dashboard, your user ID will be displayed.
- Make sure to load the EmailJS SDK in the head of your HTML code; otherwise, it won't work.
- In JavaScript, write a method that initializes the SDK with your ID and waits for submit events; depending on the version, this may change.
The steps for using GitHub Pages to deploy the website were as follows:
- On the GITHUB page's repository settings.
- On the menu under the Pages heading for code and automation.
- Select the primary branch in the source's selector..
- If everything that came before done so, you can see Your "link" has been published on your website..
To fork the repository:
- On the GitHub repository.
- Press the fork button in the top right corner.
To clone the repository:
- In the Github repository
- Locate the button Code in the right uper corner.
- Chose between HTTPS, SSH, Github CLI or download zip.
- Open Git Terminal (Bash).
- Go to the directory where you want to cloned the file.
- Use command Git clone and paste the URL.
git clone https://github.com/jdhernandezS1/CI_PP2_CG.git
Online view link_to_page
- Google apis for fonts and maps : fonts.googleapis.com
- icons source : https://ionic.io/ionicons
- https://www.w3schools.com
- https://www.freepng.es
Images Sources:
- fabicons
- freepng
- ionicons
- Road fighter 8 bit was the inspiration.
In order how was used:
- GITHUB to create the repository.
- Visual Studio Code by develop the HTML, CSS and JS files.
The softwares language and recomended IDE used to build the project.
Please read through our contributing guidelines, every pull request has been notified to be able to push code included
- directions for opening issues
- coding standards
- notes on development
- CI_PP2_CG is an open source project by CI_PP2_CG that is licensed under ops.
- CI_PP2_CG reserves the right to change the license of future releases.
Cordially thanks to:
- HashEm to bless me.
- My mentor Mo Shami for his support and Professional advices.
- My Family to support me.
- Guys of Stack overflow.