Open a browser and navigate to http://localhost:8000.
Using Visual Studio Code:
Install the “Live Server” extension.
Open the folder in VS Code.
Right-click index.html and select “Open with Live Server.”
Browser Compatibility Use a modern web browser (Google Chrome, Firefox, Microsoft Edge) for the best experience. Ensure JavaScript is enabled in your browser.
How to Use
Start the Game
Open the index.html file in your web browser (double-click if running locally without a server).
If using a local server, navigate to the provided address (e.g., http://localhost:8000).
Play the Game
Controls: Use the keyboard to control the player.
Arrow Left: Move left.
Arrow Right: Move right.
Arrow Down: Pick up or drop trash items.
Objective: Collect trash items scattered in the scene and sort them into the correct bins to reduce the pollution monster’s health.
Game Feedback
Correct Sorting: Decreases the monster’s health.
Incorrect Sorting: Increases the monster’s health and provides immediate visual and audio feedback.
Winning Continue sorting trash correctly until the monster’s health reaches zero.