Skip to content

TheDiamondSkyv32/CodePath-memoryGame

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Link to project code: (https://glitch.com/edit/#!/global-proximal-anorak)

Required Functionality

The following required functionality is complete:

[x] Game interface has a heading (h1 tag), a line of body text (p tag), and four buttons that match the demo app [x] "Start" button toggles between "Start" and "Stop" when clicked. [x] Game buttons each light up and play a sound when clicked. [x] Computer plays back sequence of clues including sound and visual cue for each button [x] Play progresses to the next turn (the user gets the next step in the pattern) after a correct guess. [x] User wins the game after guessing a complete pattern [x] User loses the game after an incorrect guess

The following optional features are implemented:

  • Any HTML page elements (including game buttons) has been styled differently than in the tutorial
  • Buttons use a pitch (frequency) other than the ones in the tutorial
  • More than 4 functional game buttons
  • Playback speeds up on each turn
  • Computer picks a different pattern each time the game is played
  • Player only loses after 3 mistakes (instead of on the first mistake)
  • Game button appearance change goes beyond color (e.g. add an image)
  • Game button sound is more complex than a single tone (e.g. an audio file, a chord, a sequence of multiple tones)
  • User has a limited amount of time to enter their guess on each turn

The following additional features are implemented:

  • Added difficulty levels: Easy, Medium, Hard, Very Hard, Extreme, European Extreme; 5, 8, 12, 16, 20, 25 waves respectively.
  • Added sound effects on Game Over & Win
  • Audio no longer lags or freezes if the user clicks too fast

Here's a walkthrough of implemented user stories:

Outside Sources Used:

https://developers.google.com/web/updates/2017/09/autoplay-policy-changes#webaudio

https://www.w3schools.com/js/js_random.asp

https://stackoverflow.com/questions/16025138/call-two-functions-from-same-onclick

https://www.w3schools.com/js/js_htmldom_html.asp

https://www.w3schools.com/cssref/pr_background-image.asp

https://minecraft.gamepedia.com/Sound

https://www.w3schools.com/tags/av_met_load.asp

https://www.w3schools.com/cssref/pr_text_text-decoration.asp

https://mixkit.co/free-sound-effects/game/

https://stackoverflow.com/questions/16042995/why-video-defaultplaybackrate-doesnt-work-in-chrome

https://www.w3schools.com/jsref/dom_obj_video.asp

[redacted]

License

Copyright Doron Griffin-Tann

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

About

Minecraft Memory & Sound Game

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published