mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-10 18:25:54 +00:00
Enemy Control
This commit is contained in:
parent
85f0ae95d7
commit
6e8031da10
8 changed files with 184 additions and 17 deletions
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue