Interactive game where the user guesses the name of today's 20 hottest Spotify songs. Designed and developed over weekend sprint.
URL: bricky.tech/top20/
- 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
- HTML
- CSS
- Animation w/ Keyframes
- Javascript
- Jquery
- Spotify's Web API
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;
}
- Allow players to pick a genre of music
- Maintain high score over time
- Social sharing of scores
- 'Discover' mode, which uses songs lower in popularity
- Affiliate links to purchase albums/songs