Exemplo n.º 1
0
 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);
 }
Exemplo n.º 2
0
 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);
 }
Exemplo n.º 3
0
 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);
 }
Exemplo n.º 4
0
 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);
 }
Exemplo n.º 5
0
 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;
 }
Exemplo n.º 6
0
 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);
 }