Exemplo n.º 1
0
        public StartMenuState(PotatoEngine.Font font, PotatoEngine.Font titleFont, PotatoEngine.Font generalFont, Input input, StateSystem system, SoundManager soundManager)
        {
            _input        = input;
            _generalFont  = generalFont;
            _system       = system;
            _soundManager = soundManager;
            _fps          = new FPS(font, new Color(0, 0, 0, 1));

            InitializeMenu();

            _title = new Text("The Darkest Matter", titleFont);
            _title.SetColor(new Color(0, 0, 0, 1));
            // Center on the x and place somewhere near the top
            _title.SetPosition(-_title.Width / 2, 300);
        }
Exemplo n.º 2
0
 void Start()
 {
     fps         = GetComponent <FPS>();
     shipManager = GetComponent <ShipManager>();
     AddShips(enemyShipCount);
 }