Exemple #1
0
        protected override void Initialize()
        {
            InputComponent input = new InputComponent(this);
            Components.Add(input);
            Services.AddService(typeof(InputComponent), input);

            bordComponent = new BordComponent(this);
            textComponent = new TextComponent(this);

            this.Components.Add(bordComponent);
            this.Components.Add(textComponent);

            spriteBatch = new SpriteBatch(GraphicsDevice);
            ScoreService Scores = new ScoreService();
            Services.AddService(typeof(ScoreService), Scores);

            base.Initialize();
        }
Exemple #2
0
        protected override void Initialize()
        {
            InputComponent input = new InputComponent(this);

            Components.Add(input);
            Services.AddService(typeof(InputComponent), input);

            bordComponent = new BordComponent(this);
            textComponent = new TextComponent(this);

            this.Components.Add(bordComponent);
            this.Components.Add(textComponent);

            spriteBatch = new SpriteBatch(GraphicsDevice);
            ScoreService Scores = new ScoreService();

            Services.AddService(typeof(ScoreService), Scores);

            base.Initialize();
        }
Exemple #3
0
 public void restart()
 {
     Components.Remove(bordComponent);
     bordComponent = new BordComponent(this);
     Components.Add(bordComponent);
 }
Exemple #4
0
 public void restart()
 {
     Components.Remove(bordComponent);
     bordComponent = new BordComponent(this);
     Components.Add(bordComponent);
 }