An open API service indexing awesome lists of open source software.

https://github.com/christinec-dev/whack-a-hippie

Whack-A-Hippie (Whack-A-Mole) Game created with Reactjs and Redux.
https://github.com/christinec-dev/whack-a-hippie

javascript react react-component react-redux reactjs redux redux-store whack-a-mole

Last synced: 2 months ago
JSON representation

Whack-A-Hippie (Whack-A-Mole) Game created with Reactjs and Redux.

Awesome Lists containing this project

README

          

# Whack-A-Hippie

The other day, I watched Season two of The Umbrella Academy, and it got me thinking about the sixties. Now, I was not born yet in the 1960s - and neither were my parents - but you know what was born in the 1960s? **HIPPIES! HIPPIES! HIPPIES!**
☮✌❤

By this time, a whack-a-mole game was on my list of React projects to attempt on my own, so I tried to take the path of love and peace and turn it into Whack-A-Hippie instead. Okay okay, so you won't actually whack a hippie, but you will be able to turn off the tv when one pops up - same principle. When you whack a hippie, the score automatically updates during 30s of gameplay, and your highest score will even be saved in your Local Browser Storage. Did I mention the remote as a cursor?

This was my first attempt at using Redux, which was pretty once I read through the documentation on their website https://redux.js.org. My Redux store binds together all my reducer state functions to compile my app functionality, and my Reducer file contains all functions that take the current state and an action as arguments, and return a new state result. In other words, (state, action) => newState. Then, I created my usual components file which will render the Game, Hippie and Status components to the App.js. I also learnt to use Immutable and Lodash (explained in my source code).

Day 7, 8, 9, 10 and 11 (it took so long because of assignments, oof) of trying to code in React on my own was a success. I completed it with the following: React, Reduct, Lodash, Immutable, JavaScript, HTML5, CSS3, and SCSS.

I got the images from Freepik, PNGFind.com, and the sound bits from myinstants.com

## 💣 Play Via Demo Link 💣 ##
[Whack-a-Hippie Game](whack-a-hippie.herokuapp.com/)
#### **Please note that if the app does not load or gives an error, just reload the page and Heroku will work again. Sorry for any inconveniece :) ####

## Main Screen
![screencapture-localhost-3000-2021-09-04-12_50_55](https://user-images.githubusercontent.com/87696858/132095482-c44a67d2-f626-43f7-8325-018095214a6b.png)

## Game Start Screen
![screencapture-localhost-3000-2021-09-04-12_51_01](https://user-images.githubusercontent.com/87696858/132095495-9adae085-e2a5-4409-bc12-ce1b2d8655a3.png)

## Game End Screen
![screencapture-localhost-3000-2021-09-04-12_51_32](https://user-images.githubusercontent.com/87696858/132095498-8aa078b3-cbf4-4940-bde7-bd0aee009255.png)

## Custom Cursor



___________________________________________________________________________________________________________________________________________________________________________________
# Getting Started with Create React App

This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).

## Available Scripts

In the project directory, you can run:

### `npm start`

Runs the app in the development mode.\
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.

The page will reload if you make edits.\
You will also see any lint errors in the console.

### `npm test`

Launches the test runner in the interactive watch mode.\
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.

### `npm run build`

Builds the app for production to the `build` folder.\
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.\
Your app is ready to be deployed!

See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.

### `npm run eject`

**Note: this is a one-way operation. Once you `eject`, you can’t go back!**

If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.

Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.

You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.

## Learn More

You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).

To learn React, check out the [React documentation](https://reactjs.org/).

### Code Splitting

This section has moved here: [https://facebook.github.io/create-react-app/docs/code-splitting](https://facebook.github.io/create-react-app/docs/code-splitting)

### Analyzing the Bundle Size

This section has moved here: [https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size](https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size)

### Making a Progressive Web App

This section has moved here: [https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app](https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app)

### Advanced Configuration

This section has moved here: [https://facebook.github.io/create-react-app/docs/advanced-configuration](https://facebook.github.io/create-react-app/docs/advanced-configuration)

### Deployment

This section has moved here: [https://facebook.github.io/create-react-app/docs/deployment](https://facebook.github.io/create-react-app/docs/deployment)

### `npm run build` fails to minify

This section has moved here: [https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify](https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify)