Skip to content

SnowcodeDesign/howmadareyoutoday

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

21 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

😑 how mad are you today!!

πŸš€ Live

we're already live! view the production site on the web here: https://howmadareyou.today/

you can also view our staging environment here: https://howmadareyou.netlify.app

βš’οΈ Usage

built with vanilla html, css, and js. very easy to extend and understand. all necessary files are in the dist/ folder and prefixed with angry_. the most essential file to expand upon is the angry_gameplay.js which supplies the underlying "gameplay" data:

/**
 * JSON representation of the ANGER level.
 * Once the max level is reached, the text will be stuck there, but the sfx will continue to be played each click.
 * If the user clicks to play the next sfx before the previous is completed, a preset record scratch sound will play.
 * Note: no sfx can be played for the first item (before user click).
 * Currently controls:
 * - text (that shows in caption & site title)
 * - fontWeight (200, 300, 400, or 700)
 * - shakiness (x/10 amount of seconds)
 * - sfx (name of audio track, cryTwo, cryThree, soAnger, or frustration)
 * - gif (name of gif or compatible <img> track, filename from /gif/ directory)
 * - mask (name of png or compatible <img> mask used via -webkit-mask on the gif, filename from /mask/ directory, requires gif to be visible)
 * - color (hex code of background color of site, will be stuck on last value if none given)
 * - degrees (degrees offset to use for position when displaying gif, calculated from center of thumbs down hand)
 */
const ANGRY_GAMEPLAY = {
    0: {
        text: "how mad are you today?",
        fontWeight: 200,
        shakiness: 0,
        sfx: "",
        color: "var(--angry-bg)"
    },
    1: {
        text: "oh angry, much?",
        fontWeight: 300,
        shakiness: 1,
        sfx: "frustration",
        gif:  "u0kxUtHbdCKs0.webp",
        mask: "irregular1.png",
        color: "C0CC0C",
        degrees: 270
    },
    ...

πŸ“ Authors

Snowcode, LLC
snowcode.design
(c) 2021

Julian Weiss
Aaron Zehm

ℹ️ Credits

πŸ”“ License

See LICENSE.

MIT License

Copyright (c) 2021 Snowcode

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.