Implemented standard key controls W A S D
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.
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.
You can use the left mouse button to attack with your fist. When hitting with a fist, the punch animation plays. Added impact sound.
Added 3 weapons:
MP-5
HK-416
RL-300 ML
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.
The active weapon (the one the player is holding) will be displayed in the lower left corner.
Added firing and reloading sounds for each added weapon.
The ammo will be reflected in the lower left corner.
That's all for now. Thank you for your attention!
Subscribe and don't miss the next one "devlog".
0 comments