New player add method

This commit is contained in:
Marco 2025-01-22 11:35:37 +01:00
commit a235183c61
8 changed files with 116 additions and 58 deletions

View file

@ -73,6 +73,7 @@ public partial class Weapon : Node2D
}
// TODO: Shoot at muzzle position, need to provide a way to turn it, on a radius?
// TODO: Create not as child but as standalone
var bullet = this.CreateChild<Bullet>(BulletScene);
bullet.SetDirection(ShootDirection);
bullet.Speed = BulletSpeed;