How to make a top-down fishing minigame like Stardew Valley?

I want to create a fishing game with a minigame concept similar to Stardew Valley. However, I couldn’t find any tutorials on Google or YouTube. I’m confused about how to start, including the coding and mechanics.

I don’t remember how exactly it works
But for sure you will need to learn how to calculate % of something
For example that green bar on blue bar on which fish is in your screenshot

Needs to be calculated on 100% of bar
And hits position and size is calculated fishing skill and potion if used and i don’t remember if also there were multiple rods

FOR EXAMPLE
We have there blue bar of height like let’s say 200
SO that green bar should be

BlueBar.Height() / Maximum GreenBar Could Be * (FishingLvL + PotionUsed + RodLvL)

For example let’s assume Maximum GreenBar Could Be
Would be actually 20
FishingLvL is 5
PotionUsed is 2
RodLvL is 3
So we get 10
So half of 20
And now you get that green bar at 50% of height of blue bar

And only thing left to put that green bar at SOME position in relation to blue bar
It can be random but then you need to make sure it will not go beyond blue bar height (like its bottom)

That green bar on the right
I don’t remember for what its for
But i will assume when you pull rod it drains itself if fish is not inside green bar
And if fish is inside green bar then that green bar on blue bar pulls up and if you bring fish up you catch fish
That can totally be done with check if fish is in collision with green bar
If yes you don’t drain green bar on right if no you drain it
Where that green bar on right is nothing else as HP bar from which you would subtract HP

Last thing to do is to cancel fishing when green bar on right is 0 so HP = 0

Im sorry i dont understand. can you make example for source code?

Yes i can
But no i will not
Cause you ask for something complex
Just because i gonna make it will not help you in any way cause you will not know how to adjust it to your needs
And you end up in same situation you are right now

And the fact you say you don’t understand anything what i wrote just proves it

So you can start building it step by step and i will guide you

1st make fish icon
Then make that whole panel with laces for all 3 bars blue one and small green and big green
And we will move on from there