Esempio n. 1
0
        public override void Draw(GameTime gameTime)
        {
            Renderer2D r2d = ((Renderer2D)Renderer);

            r2d.Draw(sky, Vector2.Zero, Color.White, BlendState.Opaque);
            r2d.Draw(mountains, mountainsPosition, Color.White, BlendState.Opaque);
        }
 public Scalable2DGameObject(Renderer2D r2d)
     : base(r2d)
 {
     this.bounds        = Rectangle.Empty;
     this.color         = Color.White;
     this.colorModifier = 1;
     this.adaptToFrame  = false;
 }
        public GameObjectsManager(GraphicsDevice graphicsDevice)
        {
            gameObjects           = new List <GameObject>();
            drawableGameObjects   = new List <DrawableGameObject>();
            collidableGameObjects = new List <CollidableGameObject>();
            toRemove = new List <GameObject>();
            toAdd    = new List <GameObject>();

            this.graphicsDevice = graphicsDevice;
            r2D = new Renderer2D(graphicsDevice);
            r3D = new Renderer3D(graphicsDevice);
        }
Esempio n. 4
0
 public Background(Renderer2D renderer)
     : base(renderer)
 {
 }