danilko / topdown-2d-multiplayer

top - down 2D multiplayer base on godot
MIT License
26 stars 7 forks source link

Implement Weapon Type - Remote Weapon #27

Closed danilko closed 2 years ago

danilko commented 2 years ago

As a player, I want to have have remote weapon type to improve play experience.

As part of this issue implementation, will need to address following:

danilko commented 2 years ago

Add following additional controls:

Q - PREVIOUS TARGET
E - NEXT TARGET
F - DISABLE AUTO TARGET AIMING

MOUSE MIDDLE WHEEL UP - ZOOM IN
MOUSE MIDDLE WHEEL DOWN - ZOOM OUT

MOUSE MIDDLE BUTTON - REMOTE WEAPON FIRE

The store also added a store item Remote Rifle to able to purchase remote item.

After purchase, the item can be used to equip remote weapon.

There will only be maximum 6 remote weapon units allowed per agent at once. Once a remote weapon unit is destroyed, a new one can be added.

Remote units cannot be repaired.

The movement is through sine and consine calculation, which is random but circular format.

The unit can pass through environment, but if block by environment, its fired projectile will be blocked, which give a good edge for enemy to leverage to dodge attacks.

A new RemoteWeaponManager is created to charge of creating/managing/sync across network for these remote weapons.

danilko commented 2 years ago

Complete this issue and test sample can be found in https://youtu.be/Ahllg2HLPbs