Esempio n. 1
0
 public virtual void Draw(PrimitiveBatch primitiveBatch, GameTime gameTime)
 {
     for (int i = 0; i < lstActors.Count; i++)
     {
         IActor actor = lstActors[i];
         actor.Draw(primitiveBatch, gameTime);
     }
 }
Esempio n. 2
0
 protected override void LoadContent()
 {
     Screen                  = GraphicsDevice.Viewport;
     Camera                  = new Camera(Screen, Vector3.Zero);
     Camera.LimitOnTop       = false;
     Camera.MouseFollowOnTop = false;
     IsMouseVisible          = true;
     spriteBatch             = new SpriteBatch(GraphicsDevice);
     primitiveBatch          = new PrimitiveBatch(GraphicsDevice);
     AssetManager.Load(Content);
     ControlTypes = new eControlType[4];
     ChangeScene(SceneType.Menu);
 }