예제 #1
0
        void SetUpKira()
        {
            if (KiraBox == null)
            {
                KiraBox      = new ImageBox();
                KiraBox.Name = "KiraBox";
            }
            Kira          = new Sprite();
            Kira.filename = "assets/CharacterSheets/kirasheet.png";

            Kira.position.x = 150;
            Kira.position.y = 100;
            Kira.inscene    = setKira;
            Kira.state      = kiraState;


            Kira.tiles.x = 4;
            Kira.tiles.y = 2;
            Kira.size.x  = 200;
            Kira.size.y  = 315;


            SpriteSheetManagerUI.CreateImage(ref Kira);
            KiraBox.Image = new ImageAsset(Kira.image, PixelFormat.Rgba);
        }
예제 #2
0
        void SetUpKira()
        {
            Kira.filename = "assets/CharacterSheets/kirasheet.png";
            if (kiraOnLeft)
            {
                Kira.position.x = 250;
                Kira.position.y = 40;
            }
            else
            {
                Kira.position.x = 450;
                Kira.position.y = 40;
            }
            Kira.inscene = true;

            Kira.tiles.x = 4;
            Kira.tiles.y = 2;
            Kira.size.x  = 200;
            Kira.size.y  = 315;

            if (Kira.image != null)
            {
                Kira.image.Dispose();
            }

            SpriteSheetManagerUI.CreateImage(ref Kira);
        }
예제 #3
0
        void SetUpAiden()
        {
            if (AidenBox == null)
            {
                AidenBox      = new ImageBox();
                AidenBox.Name = "AidenBox";
            }

            Aiden            = new Sprite();
            Aiden.filename   = "assets/CharacterSheets/aidensheet.png";
            Aiden.position.x = 35;
            Aiden.position.y = 100;
            Aiden.inscene    = setAiden;
            Aiden.state      = aidenState;
            Aiden.tiles.x    = 4;
            Aiden.tiles.y    = 2;
            Aiden.size.x     = 200;
            Aiden.size.y     = 315;

            SpriteSheetManagerUI.CreateImage(ref Aiden);

            if (!firstrunthrough)
            {
                AidenBox.Image.Dispose();
            }

            AidenBox.Image = new ImageAsset(Aiden.image, PixelFormat.Rgba);

            Aiden.image.Dispose();
        }
예제 #4
0
        void SetUpBear()
        {
            Bear.filename   = "assets/CharacterSheets/bearsheet.png";
            Bear.position.x = 485;
            Bear.position.y = 10;
            Bear.inscene    = setBear;
            Bear.state      = bearState;
            Bear.tiles.x    = 4;
            Bear.tiles.y    = 2;
            Bear.size.x     = 250;
            Bear.size.y     = 325;

            SpriteSheetManagerUI.CreateImage(ref Bear);
        }
예제 #5
0
        void SetUpBandit3()
        {
            Bandit3.filename   = "assets/CharacterSheets/banditsheet.png";
            Bandit3.position.x = 500;
            Bandit3.position.y = 5;
            Bandit3.inscene    = setBandit3;
            Bandit3.state      = Bandit3State;
            Bandit3.tiles.x    = 3;
            Bandit3.tiles.y    = 3;
            Bandit3.size.x     = 240;
            Bandit3.size.y     = 310;


            SpriteSheetManagerUI.CreateImage(ref Bandit3);
        }
예제 #6
0
        void SetUpAiden()
        {
            Aiden.filename   = "assets/CharacterSheets/aidensheet.png";
            Aiden.position.x = 130;
            Aiden.position.y = 10;
            Aiden.inscene    = setAiden;
            Aiden.state      = aidenState;
            Aiden.tiles.x    = 4;
            Aiden.tiles.y    = 2;
            Aiden.size.x     = 200;
            Aiden.size.y     = 315;


            SpriteSheetManagerUI.CreateImage(ref Aiden);
        }
예제 #7
0
        void SetUpAiden()
        {
            Aiden.filename   = "assets/CharacterSheets/aidensheet.png";
            Aiden.position.x = 130;
            Aiden.position.y = 40;
            Aiden.inscene    = true;
            Aiden.tiles.x    = 4;
            Aiden.tiles.y    = 2;
            Aiden.size.x     = 200;
            Aiden.size.y     = 315;

            if (Aiden.image != null)
            {
                Aiden.image.Dispose();
            }

            SpriteSheetManagerUI.CreateImage(ref Aiden);
        }
예제 #8
0
        void SetUpBandit3()
        {
            Bandit3.filename   = "assets/CharacterSheets/banditsheet.png";
            Bandit3.position.x = 450;
            Bandit3.position.y = 40;
            Bandit3.inscene    = setBandit3;

            Bandit3.tiles.x = 3;
            Bandit3.tiles.y = 3;
            Bandit3.size.x  = 240;
            Bandit3.size.y  = 310;

            if (Bandit3.image != null)
            {
                Bandit3.image.Dispose();
            }

            SpriteSheetManagerUI.CreateImage(ref Bandit3);
        }
예제 #9
0
        void SetUpBear()
        {
            Bear.filename   = "assets/CharacterSheets/bearsheet.png";
            Bear.position.x = 485;
            Bear.position.y = 40;
            Bear.inscene    = setBear;

            Bear.tiles.x = 4;
            Bear.tiles.y = 2;
            Bear.size.x  = 250;
            Bear.size.y  = 325;

            if (Bear.image != null)
            {
                Bear.image.Dispose();
            }

            SpriteSheetManagerUI.CreateImage(ref Bear);
        }
예제 #10
0
        void SetUpKira()
        {
            Kira.filename = "assets/CharacterSheets/kirasheet.png";
            if (kiraOnLeft)
            {
                Kira.position.x = 250;
                Kira.position.y = 10;
            }
            else
            {
                Kira.position.x = 450;
                Kira.position.y = 10;
            }
            Kira.inscene = setKira;
            Kira.state   = kiraState;

            Kira.tiles.x = 4;
            Kira.tiles.y = 2;
            Kira.size.x  = 200;
            Kira.size.y  = 315;

            SpriteSheetManagerUI.CreateImage(ref Kira);
        }