Esempio n. 1
0
        // Create with empty user set
        public CharacterManager()
        {
            // Main character/Player
            if (AppDataContainer.Values["prefcolorR"] != null)
                currentCharacter = new StoryCharacter(0, 0, Color.FromArgb(200, ((byte)AppDataContainer.Values["prefcolorR"]), (byte)AppDataContainer.Values["prefcolorG"], (byte)AppDataContainer.Values["prefcolorB"]));
            else
                currentCharacter = new StoryCharacter(0, 0);

            // Other characters/Enemies
            Characters = new ObservableCollection<Character>();
            aniMan = new AnimationManager();
            // Thread for shooting bullets
            BulletReleaseThread.DoWork += DoShootBullets;
            //addTestValues(6);
            //Characters.Add(new StarModeItem(100, 100));          

        }
Esempio n. 2
0
        // Create with empty user set
        public CharacterManager()
        {
            // Main character/Player
            if (AppDataContainer.Values["prefcolorR"] != null)
            {
                currentCharacter = new StoryCharacter(0, 0, Color.FromArgb(200, ((byte)AppDataContainer.Values["prefcolorR"]), (byte)AppDataContainer.Values["prefcolorG"], (byte)AppDataContainer.Values["prefcolorB"]));
            }
            else
            {
                currentCharacter = new StoryCharacter(0, 0);
            }

            // Other characters/Enemies
            Characters = new ObservableCollection <Character>();
            aniMan     = new AnimationManager();
            // Thread for shooting bullets
            BulletReleaseThread.DoWork += DoShootBullets;
            //addTestValues(6);
            //Characters.Add(new StarModeItem(100, 100));
        }