Example #1
0
 public override void Draw(IDrawableSurface surface)
 {
     foreach (var element in this.Children)
     {
         element.Draw(surface);
     }
 }
Example #2
0
 public override void Draw(IDrawableSurface surface)
 {
     surface.Draw("You died to Baba Yaga", new TextContext()
     {
         HorizontalCenter_Width = GameWindow.WINDOW_WIDTH,
         VerticalCenter_Height  = GameWindow.WINDOW_HEIGHT,
         FontColor = Color.White,
         FontSize  = 36
     });
 }
Example #3
0
 public void Draw(IDrawableSurface surface)
 {
     if (Hiding)
     {
         return;
     }
     this._ctx.Position = (this.X, this.Y);
     this._ctx.Rect     = (600 * _frame, 600 * _dir, 600, 600);
     surface.Draw("graphics/player.png", this._ctx);
 }
Example #4
0
        public override void Draw(IDrawableSurface surface)
        {
            if (!string.IsNullOrEmpty(this.TextureName))
            {
                surface.Draw(this.TextureName, this.ctxSurface);
            }

            if (!string.IsNullOrEmpty(this.Text))
            {
                surface.Draw(this.Text, this.ctxText);
            }
        }
Example #5
0
        public override void Draw(IDrawableSurface surface)
        {
            //TODO: draw the credit image
            var data = Singleton.Get <DataManager>();

            data.CurrentRoom.Draw(surface);
            data.Player.Draw(surface);
            data.BabaYaga?.Draw(surface);
            base.Draw(surface);

            surface.Draw("graphics/end_credit.png", new Graphics.Contexts.SurfaceContext()
            {
                Size = (GameWindow.WINDOW_WIDTH, GameWindow.WINDOW_HEIGHT)
            });
Example #6
0
        public override void Draw(IDrawableSurface surface)
        {
            var data = Singleton.Get <DataManager>();

            data.CurrentRoom.Draw(surface);
            data.Player.Draw(surface);
            data.BabaYaga?.Draw(surface);
            base.Draw(surface);

            if (data.Player.Hiding)
            {
                surface.Draw("graphics/fade.png", new Graphics.Contexts.SurfaceContext()
                {
                    Size = (GameWindow.WINDOW_WIDTH, GameWindow.WINDOW_HEIGHT)
                });
Example #7
0
        public override void Draw(IDrawableSurface surface)
        {
            surface.Draw("The Unnamed Child", new TextContext()
            {
                FontSize  = 42,
                FontColor = Color.White,
                HorizontalCenter_Width = GameWindow.WINDOW_WIDTH,
                VerticalCenter_Height  = GameWindow.WINDOW_HEIGHT
            });

            surface.Draw("Hit A to Play", new TextContext()
            {
                FontSize  = 24,
                FontColor = Color.White,
                HorizontalCenter_Width = GameWindow.WINDOW_WIDTH,
                VerticalCenter_Height  = GameWindow.WINDOW_HEIGHT * 1.125f
            });
        }
Example #8
0
 public abstract void Draw(IDrawableSurface surface);
Example #9
0
 public void Draw(IDrawableSurface surface)
 {
     surface.Draw(this.BackgroundImage, this._ctx);
 }