コード例 #1
0
        public override void LoadContent(AxiosGameScreen gameScreen)
        {
            base.LoadContent(gameScreen);

            CreateObjects(gameScreen);

            foreach (SimpleAxiosGameObject obj in GameObjects)
            {
                gameScreen.AddGameObject(obj);
            }
        }
コード例 #2
0
        public override void LoadContent(AxiosGameScreen gameScreen)
        {
            base.LoadContent(gameScreen);

            BodyParts = new List<SimpleAxiosGameObject>();

            CreateBodyPart(gameScreen);
            CreateBodyParts(gameScreen);

            gameScreen.AddGameObject(BodyPart);
            BodyPart.BodyPart.Enabled = true;
            foreach (SimpleAxiosGameObject obj in BodyParts)
            {
                gameScreen.AddGameObject(obj);
                obj.BodyPart.Enabled = false;
            }
        }