Implemented standard key controls W A S D
![20231226-2313-00_online-video-cuttercom_2.gif 20231226-2313-00_online-video-cuttercom_2.gif](https://i.gjcdn.net/public-data/fireside/posts/242/123/15182623/media/20231226-2313-00_online-video-cuttercom_2-rmta5tqw.gif)
That white square that follows the player (it won't be visible at release) is responsible for the area over which the sight can move behind the mouse. The sight will not be able to cross the white line.
![__2023-12-26_230607.png __2023-12-26_230607.png](https://m.gjcdn.net/content/750/29137795-stfe5ccj-v4.png)
In the future, this square will be able to change size using the player's weapon, or rather, the size of this square will depend on the player’s weapon. For example, in pistols the square area will be smaller than in rifles.
This square is the aiming distance.
The player turns towards the sight. Crosshair moves to mouse coordinates. The speed of rotation of the head, arms and body towards the sight - slightly different from each other.
![20231226-2313-00_online-video-cuttercom_1.gif 20231226-2313-00_online-video-cuttercom_1.gif](https://i.gjcdn.net/public-data/fireside/posts/242/123/15182623/media/20231226-2313-00_online-video-cuttercom_1-ec4weeif.gif)
You can use the left mouse button to attack with your fist. When hitting with a fist, the punch animation plays. Added impact sound.
![20231226-2313-00_online-video-cuttercom.gif 20231226-2313-00_online-video-cuttercom.gif](https://i.gjcdn.net/public-data/fireside/posts/242/123/15182623/media/20231226-2313-00_online-video-cuttercom-zkzf22zu.gif)
Added 3 weapons:
MP-5
HK-416
RL-300 ML
![gun1-r8afvfys.png gun1-r8afvfys.png](https://m.gjcdn.net/content/750/29163090-kkkze8xp-v4.png)
Implemented shooting and reloading of weapons. Added the ability to aim. When aiming, the position of the head changes, and the sight also changes. Also, when aiming, the speed of movement of the sight decreases, thereby making the player slower when aiming.
![20231227-2239-45_online-video-cuttercom_2.gif 20231227-2239-45_online-video-cuttercom_2.gif](https://i.gjcdn.net/public-data/fireside/posts/242/123/15182623/media/20231227-2239-45_online-video-cuttercom_2-reytzct5.gif)
The active weapon (the one the player is holding) will be displayed in the lower left corner.
![20231227-2239-45_online-video-cuttercom_1.gif 20231227-2239-45_online-video-cuttercom_1.gif](https://i.gjcdn.net/public-data/fireside/posts/242/123/15182623/media/20231227-2239-45_online-video-cuttercom_1-dzg8hg88.gif)
![20231227-2239-45_online-video-cuttercom.gif 20231227-2239-45_online-video-cuttercom.gif](https://i.gjcdn.net/public-data/fireside/posts/242/123/15182623/media/20231227-2239-45_online-video-cuttercom-nrbjthsk.gif)
Added firing and reloading sounds for each added weapon.
The ammo will be reflected in the lower left corner.
![__.png __.png](https://m.gjcdn.net/content/750/29163112-naxjdbuv-v4.png)
That's all for now. Thank you for your attention!
Subscribe and don't miss the next one "devlog".
0 comments