コード例 #1
0
ファイル: MatchCutesGame.cs プロジェクト: Kariih/EksamenXNA
        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();
        }
コード例 #2
0
ファイル: MatchCutesGame.cs プロジェクト: Kariih/EksamenXNA
        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();
        }