Skip to content

Create Confuse effect#14

Open
EnergyNick wants to merge 3 commits intotask-2from
confuse-behaviour
Open

Create Confuse effect#14
EnergyNick wants to merge 3 commits intotask-2from
confuse-behaviour

Conversation

@EnergyNick
Copy link
Copy Markdown
Collaborator

No description provided.

PinochetLab and others added 3 commits June 10, 2023 19:46
# Conflicts:
#	Roguelike/Actors/Enemies/AI/ConfuseBehaviour.cs
#	Roguelike/Actors/Hero/Hero.cs
Comment thread Roguelike/Actors/Actor.cs
/// </summary>
public new BaseGame Game { get; private set; }

public Guid Guid = Guid.NewGuid();
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

О, ещё одно public-поле :)


public override void Run()
{
var neighbours = GetDirections().Where(x => !Actor.Game.World.Colliders.ContainsSolid(x)).ToList();
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Конфузия интереснее (и технически, и в игровом плане), если берётся вектор, на который персонаж хотел походить, и слегка модифицируется (например, смещается вбок случайно). Это позволяет двигаться примерно куда хотим, но с трудностями. Но ок, в задании этого не просили.

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.

3 participants