Esempio n. 1
0
 public HowToPlayScreen(Game game)
     : base(game)
 {
     screenBounds = new Rectangle(0, 0, game.Window.ClientBounds.Width, game.Window.ClientBounds.Height);
     background = new Background(game);
     spriteBatch = (SpriteBatch)Game.Services.GetService(typeof(SpriteBatch));
 }
Esempio n. 2
0
        Vector2 titleVec; //dell'immagine del titolo

        #endregion Fields

        #region Constructors

        public MainMenu(Game game)
            : base(game)
        {
            screenBounds = new Rectangle(0, 0, game.Window.ClientBounds.Width, game.Window.ClientBounds.Height);
            position = 0;
            time = 0;
            background = new Background(game);
            spriteBatch = (SpriteBatch)Game.Services.GetService(typeof(SpriteBatch));
        }
Esempio n. 3
0
        Vector2 textVec; //Posizione del testo

        #endregion Fields

        #region Constructors

        public Credits(Game game)
            : base(game)
        {
            screenBounds = new Rectangle(0, 0, game.Window.ClientBounds.Width, game.Window.ClientBounds.Height);
            background = new Background(game);
            spriteBatch = (SpriteBatch)Game.Services.GetService(typeof(SpriteBatch));
            textVec = new Vector2(screenBounds.Width / 2 - 50, screenBounds.Height);

            text = "The Billiard by Luca Mollo" + Environment.NewLine + Environment.NewLine + "Program by Luca Mollo" + Environment.NewLine + Environment.NewLine +
                "Sprites by Luca Mollo" + Environment.NewLine + Environment.NewLine + "Thanks for playing";
        }