Main menu, ZX Spectrum-like font, Death screen, Fixed typo, Game Manager

This commit is contained in:
Иван Кузьменко 2023-08-18 18:57:25 +03:00
parent 602df1ed1d
commit b0caf99373
24 changed files with 497 additions and 17 deletions

View file

@ -22,6 +22,9 @@ public partial class Player : CharacterBody2D
public override void _PhysicsProcess(double delta)
{
if (!Alive)
return;
Vector2 velocity = Velocity;
// Get the input direction and handle the movement/deceleration.
@ -63,5 +66,7 @@ public partial class Player : CharacterBody2D
GD.Print($"Killed by {killer.Name}");
Alive = false;
EmitSignal(SignalName.Killed);
DeathScreen.Instance.Killed(killer);
}
}