mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-12 21:05:55 +00:00
New player add method
This commit is contained in:
parent
83e8b9081c
commit
a235183c61
8 changed files with 116 additions and 58 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue