diff options
| author | Ben Beltran <ben@nsovocal.com> | 2013-11-12 22:40:29 -0600 |
|---|---|---|
| committer | Ben Beltran <ben@nsovocal.com> | 2013-11-12 22:40:29 -0600 |
| commit | 38c7d3f9eb7d63937c6654ff5dd6046ce02dd59c (patch) | |
| tree | 9df6c6faa8cb250d66c022f2d54a0f769adb7cfd /Super Polarity/ActorFactory.cs | |
| parent | 2af83e98005a14c439b360a5b9ac636f594d9f0c (diff) | |
I think bullets come out now.
Diffstat (limited to 'Super Polarity/ActorFactory.cs')
| -rw-r--r-- | Super Polarity/ActorFactory.cs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Super Polarity/ActorFactory.cs b/Super Polarity/ActorFactory.cs index 3e2f80b..4ebbb4c 100644 --- a/Super Polarity/ActorFactory.cs +++ b/Super Polarity/ActorFactory.cs @@ -52,5 +52,18 @@ namespace SuperPolarity { ActorFactory.Game = game; } + + internal static Bullet CreateBullet(Vector2 position, float angle) + { + Bullet bullet = new Bullet(Game); + + bullet.Initialize(Game.Content.Load<Texture2D>("Graphics\\square"), position); + + bullet.Angle = angle; + + ActorManager.CheckIn(bullet); + + return bullet; + } } } |