aboutsummaryrefslogtreecommitdiff
path: root/Super Polarity/GameScreen.cs
diff options
context:
space:
mode:
authorBen Beltran <ben@nsovocal.com>2013-11-22 06:53:08 -0600
committerBen Beltran <ben@nsovocal.com>2013-11-22 06:53:08 -0600
commit097781e6ad3f7bb1c13c16ff7b6bb7219764fb29 (patch)
tree3ff629e90f2814d886ae2bbe484f64da824dbdf2 /Super Polarity/GameScreen.cs
parent74c155708d85abfc2cf227c08de4f27003015b3f (diff)
Stuffffffff
Diffstat (limited to 'Super Polarity/GameScreen.cs')
-rw-r--r--Super Polarity/GameScreen.cs15
1 files changed, 12 insertions, 3 deletions
diff --git a/Super Polarity/GameScreen.cs b/Super Polarity/GameScreen.cs
index 4404b16..28fd7b7 100644
--- a/Super Polarity/GameScreen.cs
+++ b/Super Polarity/GameScreen.cs
@@ -12,6 +12,8 @@ namespace SuperPolarity
{
public GameScreen(SuperPolarity newGame) : base(newGame) {}
+ private BasicGenerator generatorTest;
+
public override void Initialize()
{
InputController.RegisterEventForButton("changePolarity", Buttons.A);
@@ -23,17 +25,24 @@ namespace SuperPolarity
public override void LoadContent()
{
+
+ generatorTest = new BasicGenerator();
+ generatorTest.Initialize(Game, new Vector2(100, 600), BasicGenerator.Ships.Scout, 3000, 10);
+
Vector2 playerPosition = new Vector2(Game.GraphicsDevice.Viewport.TitleSafeArea.X, Game.GraphicsDevice.Viewport.TitleSafeArea.Y + Game.GraphicsDevice.Viewport.TitleSafeArea.Height / 2);
- Renderer.CheckIn(ActorFactory.CreateMainShip(playerPosition));
- Renderer.CheckIn(ActorFactory.CreateShip(Ship.Polarity.Positive, new Vector2(200, 200)));
- Renderer.CheckIn(ActorFactory.CreateShip(Ship.Polarity.Negative, new Vector2(400, 200)));
+ ActorFactory.CreateMainShip(playerPosition);
+ ActorFactory.CreateShip(Ship.Polarity.Positive, new Vector2(200, 200));
+ ActorFactory.CreateShip(Ship.Polarity.Negative, new Vector2(400, 200));
+ ActorFactory.CreateScout(Ship.Polarity.Negative, new Vector2(500, 500));
+ ActorFactory.CreateCruiser(Ship.Polarity.Positive, new Vector2(40, 40));
}
public override void Update(GameTime gameTime)
{
InputController.UpdateInput();
ActorManager.Update(gameTime);
+ generatorTest.Update(gameTime);
}
public override void Draw(SpriteBatch spriteBatch)