Skip to content

Brikky/top20

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Top 20


Interactive game where the user guesses the name of today's 20 hottest Spotify songs. Designed and developed over weekend sprint.

Features


  • Dynamically gathers top 20 songs from Spotify
  • Player guesses are dynamically checked - no need to press enter!
  • Player guesses and song names are stripped of punctuation before being compared
  • Secondary song names and featuring lines are not required for a correct answer
  • Songs autoprogress after correct guess or 30 seconds

Technologies Used


  • HTML
  • CSS
    • Animation w/ Keyframes
  • Javascript
  • Jquery
  • Spotify's Web API

Code Sample


Game.prototype.cleanString = function(string) {
    var cleanedString = string
        .replace(/\s*\(.*?\)\s*/g, '')  //removes secondary song titles in parenthesis
        .replace(/[^\w\s]|_/g, "")      //removes punctuation
        .replace(/feat.*this.$/g, "")   //removes anything after "feat. "
        .trim();                        //removes leading and trailing whitespace
    
    return cleanedString;
}

Future Work


  1. Allow players to pick a genre of music
  2. Maintain high score over time
  3. Social sharing of scores
  4. 'Discover' mode, which uses songs lower in popularity
  5. Affiliate links to purchase albums/songs

Screenshots


Top 20 Game

About

Song based browser game for project 2 weekend project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published