Skip to content

A single page javaScript based game with a custom logo. Features vanilla JS, extensive media queries and other CSS styling.

Notifications You must be signed in to change notification settings

AeronRoemer/JS-Object-Oriented-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Phrase Hunter

Created based on project from Teamtreehouse.com. HTML slightly altered, existing CSS code altered by adding media queries and enhancing flexbox layout to work on mobile devices, as well as creating a 'neon' button. Javascript created by me. If you are also student and working on this or a similar project, feel free to reach out to me with anyquestions about this code. I've made an effort to include helpful comments anddocumentation for fellow learners.

Basic Structure

Phrase Hunter is a javascript based hangman type game. It features javascript animations and SVG graphics, created in Adobe Illustrator

Concepts Demonstrated

The main technologies and concepts demonstrated in this project are

  • javaScript: Object Oriented Programming
  • Adobe Illustrator
  • SVG Graphics
  • Responsive Image Density
  • CSS Flexbox
  • CSS Media Queries

Logo

Phrase Hunter Logo

The 'Phrase Hunter' image is found in the repository as both a Scalable Vector Graphic and a PNG. In some cases, SVGs are smaller but in this case the complexity of the images makes the PNG a smaller sized option.

Benefits of the SVG include:

  • resizable without pixelation
  • contains extra data like transparency and font information

Benefits of PNG the include

  • often smaller file sizes for images with complex colors
  • transparency in PNG-24 files

Density and Resolution Switching

HTML enables different image resolutions depending on the pixel density of the display. 'Srcset' attribute allows browsers to select best image size, with 'src' as a fallback image. Since there is no art direction for different size devices, <picture> was not used

<!-- DENSITY AND RESOLUTION SWITCHING-->
<img srcset="images/SplashImage_3x.png 3x,
    images/SplashImage.png 2x,
    images/SplashImage_sm.png 1x"
    src="images/SplashImage.png"
    class="overlay-img"
    alt="Phrase Hunter logo">

The typefaces used in the logo were:

The 'Phrase' text on the logo is based on 'Sidecar' by Fenotype -> https://fenotype.com/. The 'Hunter' text is loosely based on DIN Condensed, an Adobe Font ->https://fonts.adobe.com/. The Neon effect was created in Adobe Illustrator.

CSS Queries

When implemented, images and details will be posted about:

  • Media Queries for mobile/desktop
  • Dark/Light mode

Dark/Light Mode

Dark Light
Dark Mode Light Mode

Mobile/Desktop Query

Mobile Desktop
Mobile asks user to switch devices Full Size Device Displays Correctly
  • Note the button customized to match the typeface on hover.

Test Functionality

Visit https://aeronroemer.github.io/JS-Object-Oriented-Game/ to test the functionality of this project.

About

A single page javaScript based game with a custom logo. Features vanilla JS, extensive media queries and other CSS styling.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published