Beanie-Bandit
Javascript game where beanies need to be caught and visors must be avoided.
Link to game: https://nchez.github.io/Beanie-Bandit/
Where Did All These Beanies and Visors Come From?
Thanks to global warming (aka climate change) beanies are falling from the sky. It just so happens the Beanie Bandit is in town and they want as many beanies as possible.
Another side effect of climate change (arguably the worst side effect) is visors raining from the sky. Beanie Bandit despises visors! Why make a hat with no head covering?!? Beanie Bandit must avoid the falling visors at all costs!
Game Explanation
Objective
Collect as many beanies as possible in the alloted time while avoiding the visors! Three visor grabs and the game is over!
The player can move horizontally to catch the beanies and dodge the visors as they are falling from the ever-warming sky!
Player’s score increases by 1 for each touched. If three visors are touched, the game is over.
Development
Wireframe

Finished Product

MVP
Stretch Goals
Technologies Used
- JavaScript, Canvas API, CSS (some grid), HTML
- Google.com (the search engine)
- Andy for emotional and technical support
Code Highlights
Difficulties finding a way to move beanies without moving all of them at once.
Refactoring, Bug Fixes, Improvements
- Group more functions to prevent code repeats
- Fix power-ups/power-downs (late additions)
- If rainbow hat is grabbed and another is grabbed, speed is back to normal
- Some objects spawn too far down on screen
- Add instructions/explain what power-ups/power-downs are
- Size elements, canvas, filltexts, etc so they work on different screen sizes
- Make it more visually pleasing (read: change chartreuse color)
References
For beanies:
- sportsbasement.com
- https://cdn.shopify.com/s/files/1/0442/0203/3317/products/PhotoRoom_20210222_020308_620x.png?v=1614020090
- https://shop.sportsbasement.com/products/acrylic-watch-hat
- https://www.nixon.com/products/jorgensen-wool-beanie-navy
- https://www.on-running.com/en-us/products/merino-beanie
- https://www.tracksmith.com/products/prospect-beanie
- https://www.shopneedco.com/products/skull-tag-beanie
- https://madehereonline.com/products/organic-cotton-beanie-by-rustek
- https://pngset.com/download-free-png-ehdtr
For visors:
- https://www.greatgolfmemories.com/mastersvisorw.html
- https://www.titleist.com/product/tour-visor/154HA1T.html
- https://www.pgatoursuperstore.com/sp-20-hats%3A-arobill-visor/2000000008917.html
- https://league-legacy.com/collections/visors
- http://clipart-library.com/clip-art/145-1458372_transparent-visors-red-sun-visor-cap-png.htm
- https://www.facebook.com/towntalkheadwear/
For greenhouse gases:
- https://www.pinclipart.com/maxpin/iTxRio/
-
https://www.flaticon.com/premium-icon/ch4_2354749
For player image:
- https://the-youtooz.fandom.com/wiki/Oliver_Tree_(1FT)
For search engine:
For music:
- Oliver Tree “Let Me Down”
- MP3:
- https://www.youtube.com/watch?v=CX6ewov0qds&t=8s