In order to deploy the game on the final website, the following changes are needed.
Make the changes in a new draft PR titled Final deployment prep to this repo and add Fixes #1 as its description.
Changes requested
[x] Move the /public/images folder to /src/assets/images and instead fetching the images or using image urls use (await import(url)).default as the image
[x] Move all audio files to /src/assets
[x] Use your game icon as the favicon
[x] Delete horse1.pnghorse2.pnghorsehad.png or move them to appropriate place
[x] Make all react files have .jsx extension
[x] Move all components to /src/components folder.
lion.js
Level__.js
Popup.js
confetti.js
GetStarted.js
ImageDragAndDrop.js
InstructionsPopup.js
[ ] Try to combine all levels to a single reusable component with different levels stored as json.
[x] Make the root path of the game as /games/animaljoining
[x] Remove any redundant assets to minimize the build size.
In order to deploy the game on the final website, the following changes are needed.
Make the changes in a new draft PR titled
Final deployment prep
to this repo and addFixes #1
as its description.Changes requested
/public/images
folder to/src/assets/images
and instead fetching the images or using image urls use(await import(url)).default
as the image/src/assets
horse1.png
horse2.png
horsehad.png
or move them to appropriate place.jsx
extension/src/components
folder.lion.js
Level__.js
Popup.js
confetti.js
GetStarted.js
ImageDragAndDrop.js
InstructionsPopup.js
/games/animaljoining
require()
in your code