public Card() { r = new Random(); if (GameManger.game != null) { Position = new Vector2(x: GameManger.game.Width / 2, y: 50); } //AddGraphic(Image.CreateRectangle(cardSizex, cardSizeY, Color.White)); fundo = new ImageEntity(400, 314, "Images/IMG.png"); fundo.Position = new Vector2(650, 200); //Position = new Vector2(x: Position.X - Graphic.Width / 2, y:Position.Y); desc = new desc(470, 360, "\n Rolar os dados? "); firstOption = new CardOption(Position.X - 180, fundo.Position.Y + 320); secondOption = new CardOption(Position.X + 50, fundo.Position.Y + 320); }
public Card(Question question) { Question = question; if (GameManger.game != null) { Position = new Vector2(x: GameManger.game.Width / 2, y: 50); } //AddGraphic(Image.CreateRectangle(cardSizex, cardSizeY, Color.White)); fundo = new ImageEntity(400, 314, "Images/IMG.png"); fundo.Position = new Vector2(650, 200); //Position = new Vector2(x: Position.X - Graphic.Width / 2, y:Position.Y); desc = new desc(470, 360, "\n " + Question.Texto); firstOption = new CardOption(Position.X - 180, fundo.Position.Y + 320, question.Opcao1); secondOption = new CardOption(Position.X + 50, fundo.Position.Y + 320, question.Opcao2); }
public GameOverScreen(string titulo, string descricao) : base() { ImageEntity a = new ImageEntity(640, 360, "Images/rsz_bg.jpg"); a.Graphic.Alpha = 0.3f; Add(a); this.titulo = new RichText(titulo, 50); this.titulo.TextAlign = TextAlign.Center; this.titulo.SetPosition(10, -300); this.titulo.CenterOrigin(); this.titulo.Color = Color.White; this.titulo.DefaultOutlineColor = Color.Black; this.titulo.DefaultOutlineThickness = 30; a.AddGraphic(this.titulo); desc = new RichText(descricao, 30); desc.TextAlign = TextAlign.Center; desc.SetPosition(10, -100); desc.CenterOrigin(); desc.Color = Color.White; desc.DefaultOutlineColor = Color.Black; desc.DefaultOutlineThickness = 2; a.AddGraphic(desc); stats = new RichText("Seus Status: " + "\n Ecologia : " + PlayerStats.stats.Eco + "\n População: " + PlayerStats.stats.Pop + "\n Tecnologia: " + PlayerStats.stats.Tech + "\n Felicidade: " + PlayerStats.stats.Mood + "\n ANO: " + PlayerStats.stats.Year, 30); stats.TextAlign = TextAlign.Center; stats.SetPosition(10, 200); stats.CenterOrigin(); stats.Color = Color.White; stats.DefaultOutlineColor = Color.Black; stats.DefaultOutlineThickness = 30; a.AddGraphic(stats); }
public Planet(int x, int y) { Position = new Vector2(x: x, y: y); image = new ImageEntity(x, y, "Images/OTIMO.png"); }