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); } }
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 }); }
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 }); }
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); }
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) });
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) });
public void Draw(IDrawableSurface surface) { surface.Draw(this.BackgroundImage, this._ctx); }