Write the following 2D game in HTML and JavaScript: 1. You play as a yellow fish. Your…
- User
Write the following 2D game in HTML and JavaScript:
- You play as a yellow fish. Your goal is to eat as many red fish as possible.
- The play-area is a hollow cube with walls surrounding it. If the player touches any of the walls, the game is over.
- Multiple red fish are procedurally generated in the play-area and automatically regenerated in a different location after they are eaten. The red fish move in random directions in the play area.
- As the score (the amount of red fish eaten) goes up, the red fish's speed increases.
- The yellow fish moves by chasing the player's cursor loosely.
Write the ENTIRE code and do not just insert placeholders. Write the code in one index.html file.
Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.