public PauseScreen(GraphicsDevice graphicsDevice, Game game, Texture2D backgroundTexture) : base(graphicsDevice, game) { base.game = game; base.graphicsDevice = graphicsDevice; menu = new PauseMenu(base.graphicsDevice, base.game); this.backgroundImage = new Basic2D(backgroundTexture, new Vector2(GameStateManager.Instance.Dimensions.X / 2, GameStateManager.Instance.Dimensions.Y / 2), GameStateManager.Instance.Dimensions); }
public TitleScreen(GraphicsDevice graphicsDevice, Game game) : base(graphicsDevice, game) { base.game = game; base.graphicsDevice = graphicsDevice; menu = new TitleMenu(base.graphicsDevice, base.game); backgroundImage = new Basic2D("Game/BackgroundImage", new Vector2(GameStateManager.Instance.Dimensions.X / 2, GameStateManager.Instance.Dimensions.Y / 2), GameStateManager.Instance.Dimensions); creditsText = new Text2D(new Vector2(225, 850), "Created by\nJakub Olech", "TitleScreen/CreditsFont", Color.Black); }
public GameScreen(GraphicsDevice graphicsDevice, Game game, bool singleplayer = true) : base(graphicsDevice, game) { this.singleplayer = singleplayer; backgroundImage = new Basic2D("Game/BackgroundImage", new Vector2(GameStateManager.Instance.Dimensions.X / 2, GameStateManager.Instance.Dimensions.Y / 2), GameStateManager.Instance.Dimensions); afterGameTexts[0] = new Text2D(new Vector2(430, 350), "", "MenuFont", new Color(122, 54, 6), true, false); afterGameTexts[1] = new Text2D(new Vector2(430, 400), "", "MenuFont", new Color(122, 54, 6), true, false); scoreText = new Text2D(new Vector2(225, 850), "Created by\nJakub Olech", "TitleScreen/CreditsFont", Color.Black); }
public LeaderboardsScreen(GraphicsDevice graphicsDevice, Game game) : base(graphicsDevice, game) { base.game = game; base.graphicsDevice = graphicsDevice; scoreManager = ScoreManager.Load(); backgroundImage = new Basic2D("Game/BackgroundImage", new Vector2(GameStateManager.Instance.Dimensions.X / 2, GameStateManager.Instance.Dimensions.Y / 2), GameStateManager.Instance.Dimensions); creditsText = new Text2D(new Vector2(225, 850), "Created by\nJakub Olech", "TitleScreen/CreditsFont", Color.Black); highscoresText = new Text2D(new Vector2(120, 110), "High scores:\n", "MenuFont", new Color(122, 54, 6), false, false); }
public Tile(bool side, bool visible, Vector2 position, Vector2 dimensions, bool hideBackground = false) { Position = position; tileSprite = new Basic2D("Game/Tile", position, dimensions); diskSprite = new Basic2D("Game/Disk", position, dimensions * 0.8f); Side = side; Visible = visible; tileSprite.OnPressed += TileSprite_OnPressed; tileSprite.OnMouseOver += TileSprite_OnMouseOver; tileSprite.OnMouseOut += TileSprite_OnMouseOut; this.hideBackground = hideBackground; }
public SplashScreen(GraphicsDevice graphicsDevice, Game game) : base(graphicsDevice, game) { base.graphicsDevice = graphicsDevice; splashImage = new Basic2D("SplashScreen/SplashImage", new Vector2(GameStateManager.Instance.Dimensions.X / 2, GameStateManager.Instance.Dimensions.Y / 2), GameStateManager.Instance.Dimensions); }