This website uses cookies.Before continuing to use our website, you agree and accept Privacy policy.Accept

Fishing game made with AI


When you click, the fishing line starts to descend.


PC - Smartphone



DESCRIPTION

This is a fishing game created using AI generation.

It's a simple game where you cast your fishing line to catch the fish swimming around.

Initially, I planned to add a time limit, but the game started behaving oddly when I tried, so there isn't one for now.

However, without a time limit, the game lacks a bit of tension as a result.

HOW TO MAKE/PROMPT

Created using Claude sonnet. The prompt was as follows:
Generate a fishing HTML game
#structure
- html,js,css in 1 file
- 512x512 canvas

#script
##variable
- score:0,
- numOfFish:10

##init
- background is blue
- There are numOfFish fishes swimming around.
- A boat is floating at the top center of the screen.
- The boat, fish, and bait are represented by emojis.
- A reset button is displayed.

##gameloop
- When the player clicks, a fishing line slowly descends straight down from the boat at the center of the screen.
- Clicking again removes the line and starts dropping a new line from the top.
- If a fish collides with the tip of the fishing line, a score is added, and the fish is removed.
- The game is cleared when all the fish are caught.

What if there is an error?




<< menu

On-site search