Well-known-Game-Studio / wot_a_good_game

WOT: A Good Game - Wotxels; the first of its name
https://twitter.com/WellKnownGames
3 stars 0 forks source link

Feature/fence #87

Closed finger563 closed 1 year ago

finger563 commented 1 year ago

Description

Motivation and Context

Currently, fences are placed manually (which is a pain for positioning and repositioning), with the gates placed manually, and then if you want functionality to have the fences enclose a pen (area containing actors) then you have to do that manually by adding a trigger box and wiring up triggers to the actors yourself (optionally tracking state of the gates yourself). This PR adds a new actor / tool which will automatically generate fenced in areas with optional gates on each side in configurable locations which can be told to monitor if certain actors are in the fenced area or not. It emits events when they stop being in there (if they are) and when they are there (when the gates are closed).

How has this been tested?

Playing the gameplay test, herding, and diorama levels and making sure they work (esp. the diorama level since it wired up the sheep pen to various game state events - that wiring is now much simpler :) )

Screenshots (if appropriate):

CleanShot 2023-09-05 at 17 34 56

https://github.com/Well-known-Game-Studio/wot_a_good_game/assets/213467/6ac31573-07a5-4f79-87b4-49044cd5196d

Updated level blueprint for handling when the sheep are herded (no longer needing to track the specific actors and monitor the trigger box and gate state since the sheep pen actor handles that all now). CleanShot 2023-09-05 at 17 45 10

new props blender file: CleanShot 2023-09-05 at 17 49 42

Types of changes

Checklist:

Software