Exemplo n.º 1
0
 //Added 8/20/2011
 public static void DrawLine(SpriteBatch batch, Camera camera, Color color,
                            Line line, float layer= 0)
 {
     DrawLine(batch, color, camera.getRenderPosition(line.Point1), camera.getRenderPosition(line.Point2), layer);
 }
Exemplo n.º 2
0
        /// <summary>
        /// LoadContent will be called once per game and is the place to load
        /// all of your content.
        /// </summary>
        protected override void LoadContent()
        {
            LineBatch.Init(GraphicsDevice);
            layers = new SortedList<String, Layer>();
            camera = new Camera(Vector2.Zero);
            lines = new List<Line>();
            randomNum = new Random();
            collisionManager = new CollisionManager();
            spriteBatch = new SpriteBatch(GraphicsDevice);
            controller = new Controller();
            camera = new Camera(Vector2.Zero);

            spritesheet = Content.Load<SpriteSheet>("sheet");
            spritesheet2 = Content.Load<SpriteSheet>("sheet2");
            loadAnimationTables();
            font = Content.Load<SpriteFont>("FromWhere");

            loadLayers();

            // TODO: use this.Content to load your game content here
        }