Enemy Control

This commit is contained in:
Marco 2025-02-17 18:42:37 +01:00
commit 6e8031da10
8 changed files with 184 additions and 17 deletions

View file

@ -24,6 +24,9 @@ public partial class PlayerMovement : CharacterBody2D, IDestructible
[Export]
public string GameOverScene { get; set; }
[Export]
public Texture2D WingsSprite { get; set; }
private Selector _selector;
@ -332,7 +335,7 @@ public partial class PlayerMovement : CharacterBody2D, IDestructible
{
if (!_canMove) return;
Velocity = _movementDirection * (float)( MovementSpeed/* * delta*/);
Velocity = _movementDirection * MovementSpeed;
MoveAndSlide();
}