We're creating a game - Pop the Monkey.
The game should be mobile-first, but should work equally well on smartphone, tablet, or desktop browser.
It should be a PWA that can be installed by the user as an app.
In the game, a monkey (represented as a monkey emoji) starts at a random point on the screen, very small. I increasingly grows in size and its opacity decreses, until it fills the entire screen and has opacity of 0, and the it disappears. The player needs to click or tap the monkey, when they do, the monkey pops (with a cool explosion animation) and the player gets points according to the opacity (so that if the opacity is 0.89 the user gets 89 points). every time the monkey is growing in size and increasing in opacity faster. the player can see their points, and also their high score, which is saved in localStorage. The game is over when the player misses 3 monkeys in a row.
The look is retro gaming.
I'll create a Pop the Monkey game as a Progressive Web App (PWA) with a retro gaming look, responsive design, and the gameplay mechanics you described. Let's break this down into steps and create the necessary files.
Let's start by creating the main game component and the necessary configuration files for the PWA.
This implementation creates a Pop the Monkey game as a Progressive Web App with the following features:
Game mechanics as described:
To complete the PWA setup, you'll need to add the following files to your public folder:
icon-192x192.png: A 192x192 pixel icon for your app.icon-512x512.png: A 512x512 pixel icon for your app.You can create these icons using any image editing software or an online icon generator. Make sure they represent your game well and follow the retro gaming style.
To run this game, you'll need to install the following dependencies:
npm install framer-motionThis game should now work as a PWA that can be installed on users' devices. The retro gaming look is achieved through the use of the "Press Start 2P" font and the green-on-black color scheme. The game is fully responsive and should work well on all device sizes.