Пример #1
0
 public Form1(Arena arena)
 {
     this.arena = arena;
     // Theses are the colors of ponies:                     hair1      hair2      body1      body2      body3      eyes1      eyes2      eyes3      eyes4      cuti1      cuti2
     colors.Add(PonyColor.Applejack, new string[]        { "#EDE27B", "#FFFFBD", "#EA7642", "#FAC479", "#F2B56A", "#74D65E", "#3D9828", "#D6F8CD", "#98F177", "#E43C53", "#75D75C" });
     colors.Add(PonyColor.PinkiePie, new string[]        { "#B90B85", "#E43B96", "#E580BB", "#F5BAD9", "#E99DCB", "#97E0F7", "#2A82A2", "#E8FDFF", "#B2E8FA", "#95DFF6", "#FFFEBC" });
     colors.Add(PonyColor.Rarity, new string[]           { "#521371", "#6B57A9", "#C9CDCE", "#F1F6F6", "#E8EDEB", "#4DBBBF", "#2F597B", "#8DBCEC", "#6BA2D6", "#32ADD4", "#93E2F9" });
     colors.Add(PonyColor.Fluttershy, new string[]       { "#E181BA", "#F0B9D7", "#ECE17A", "#FDFFBA", "#F7F09C", "#17CBAF", "#096C5A", "#9DE3DD", "#58D1C1", "#F3BAD7", "#85DEC8" });
     colors.Add(PonyColor.TwilightSparkle, new string[]  { "#1F2B55", "#33437D", "#AD70C4", "#D7A3E7", "#BC90CC", "#70308F", "#270A4A", "#D4BADC", "#9761AF", "#E33C96", "#FFFFFF" });
     // If you want to add a new pony colorscheme you may use this afer add the color in the enum.
     //colors.Add(PonyColor.YourColor, new string[]        { "#", "#", "#", "#", "#", "#", "#", "#", "#", "#", "#" });
     InitializeComponent();
 }
Пример #2
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            #if PONY

             Pony Left = new Pony("Star Wars",42,100,100, Pony.PonyColor.Applejack);
             Pony Right = new Pony("Pitbull", 42, 100, 100,Pony.PonyColor.PinkiePie);

             Attack attack_1 = new Attack("Boulouloubi",10,50,10,100);
             Attack attack_2 = new Attack("Bouloulouba",20,60,10,100);

             Arena arena = new Arena(Left,Right);

            Application.Run(new Form1(arena));
            #else
            Application.Run(new Form1());
            #endif
        }