Main menu, ZX Spectrum-like font, Death screen, Fixed typo, Game Manager
This commit is contained in:
parent
602df1ed1d
commit
b0caf99373
24 changed files with 497 additions and 17 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue