How does js make bullets that are good at fishing?

Let the bullets be fired according to the direction of the mouse click, just like those who are good at fishing

Mar.06,2021

one or two steps:
1. Get the coordinates of mouse clicks;
2. Move the bullet to the coordinates obtained in step 1.

II. Complete code:
animate animation dependent on jQuery

<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
        html,
        body,
        -sharpcontainer {
            width: 100%;
            height: 100%;
            position: relative;
        }

        -sharpdot {
            background: -sharp000;
            height: 20px;
            width: 20px;
            border-radius: 50%;
            position: absolute;
        }
    </style>
</head>

<body>
    <div id="container">
        <div id="dot"></div>
    </div>
    <script src="jquery-1.9.1.min.js"></script>
    <script>
        function getMousePos(event) {
            var e = event || window.event;
            return { 'left': e.clientX, 'top': e.clientY }
        }
        $("-sharpcontainer").on("click", function (event) {
            var xy = getMousePos(event);
            $("-sharpdot").animate(xy);
        })
    </script>
</body>

</html>

found in the source code of fishing experts written by others, has been solved


[Dingsheng International] the latest download link http://tg.chenfengyihuo.com/?.
24 hours self-help minutes, seconds to account.
regular big platform gives 10% more for daily first rush
[Dingsheng International] withdrawal link: choose self-help withdrawal after jumping http://pay.wljiaoyu.com/ZFsdyl

.
Menu