feat: init AI (#60)

This commit is contained in:
2025-05-15 07:12:46 +02:00
committed by GitHub
parent 0263f6b3b0
commit bde6ea3a43
12 changed files with 508 additions and 16 deletions

View File

@ -38,7 +38,7 @@ public class NormalGameMode : IGameMode
UpdateParticlePositionAndRotation(player);
}
private void Jump(Player player)
public void Jump(Player player)
{
player.RigidBody.linearVelocity = new Vector2(player.RigidBody.linearVelocity.x, 0);
player.RigidBody.AddForce(Vector2.up * JumpForce, ForceMode2D.Impulse);