Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move towers + cleanup #59

Merged
merged 19 commits into from
Nov 18, 2021
Merged

Move towers + cleanup #59

merged 19 commits into from
Nov 18, 2021

Conversation

ddabble
Copy link
Member

@ddabble ddabble commented Nov 17, 2021

Added a button (M/Gamepad north button) for moving the focused tower, which removes the tower from the game and puts the player in building mode.


Other highlights:

  • Refactored loot script (97425a3)
  • Renamed AxeTowerController -> AxeTowerAnimationController (dc10cd1)
  • Added RotatableTowerLogic and removed rotation logic from AxeTowerAnimationController (b6b2e07 and 50aa5cc)
  • Extracted projectile logic from TowerLogic to ProjectileTowerLogic (eb2ed8a)
  • ✨ Fixed tower arrow pointer not rendering properly (56ecbf7)
  • Fixed keyboard keys mapped to physical location (9c50719)

Also removed the unused `lookingTowards` and `autoShoot` fields.
Also removed the rotation logic from `TowerLogic`, so that only rotatable towers have that logic.
This was duplicated from `TowerLogic`.
...to the separate script, `ProjectileTowerLogic`.
This fixes the axe tower being rotated wrongly, as its initial rotation is `(-90, 0, 0)` instead of `(0, 0, 0)`.
This makes the values of `HeldInteractable`, `FocusedInteractable`, `LiftedObject` and `TargetCell` visible in the inspector,
but unable to be written to.
This makes the value of `TurretInput` visible in the inspector, but unable to be written to.
They're now mapped to the character typed - no matter the physical location.
# Conflicts:
#	Assets/Prefabs/PlayerControls.inputactions
#	Assets/Scripts/Player/PlayerControls.cs
#	Assets/Scripts/Player/PlayerStateController_Input.cs
Copy link
Collaborator

@Fueredoriku Fueredoriku left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looked through all changed scripts and tested in-game. Works very well! The clean up of playerstatecontroller is very nice, and the fact that you updated the readmes too is very appreciated. I'm also personally very happy that arrowpointer is back :)

@ddabble ddabble merged commit def6e56 into develop Nov 18, 2021
@ddabble ddabble deleted the feature/move-towers branch November 18, 2021 09:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants