コード例 #1
0
        public void LoadSpritesAndFonts()
        {
            if (FontList.All.Count == 0 && SpriteList.All.Count == 0)
            {
                FontList.Load(EFont.timelineNormal, "Times New Roman", 2.0, Color.FromArgb(193, 180, 255), FontStyle.Bold);
                FontList.Load(EFont.timelineError, "Times New Roman", 2.0, Color.Red, FontStyle.Bold);

                FontList.Load(EFont.main, "Times New Roman", 3.0, Color.FromArgb(193, 209, 255), FontStyle.Bold);

                FontList.Load(EFont.player0, "Times New Roman", 3.0, Color.FromArgb(230, 70, 70), FontStyle.Bold);
                FontList.Load(EFont.player1, "Times New Roman", 3.0, Color.FromArgb(70, 230, 70), FontStyle.Bold);

                SpriteList.Load(ESprite.man0, -90);
                SpriteList.Load(ESprite.man1, -90);
            }
        }
コード例 #2
0
ファイル: Game.cs プロジェクト: LightRay2/ContestFramework
        public void LoadSpritesAndFonts()
        {
            if (FontList.All.Count == 0 && SpriteList.All.Count == 0)
            {
                FontList.Load(EFont.timelineNormal, "Times New Roman", 1.6, Color.FromArgb(200, 200, 200));
                FontList.Load(EFont.timelineError, "Times New Roman", 1.9, Color.Red, FontStyle.Bold);
                FontList.Load(EFont.playerNumbers, "Times New Roman", 1.5, Color.White);
                FontList.Load(EFont.Time, "Times New Roman", 2.0, Color.FromArgb(200, 200, 200), FontStyle.Bold);
                FontList.Load(EFont.TeamOne, "Times New Roman", 2.0, Color.FromArgb(200, 0, 180, 230), FontStyle.Bold);
                FontList.Load(EFont.TeamTwo, "Times New Roman", 2.0, Color.FromArgb(200, 180, 140, 0), FontStyle.Bold);
                FontList.Load(EFont.ScoreOne, "Times New Roman", 4.0, Color.FromArgb(255, 0, 180, 230), FontStyle.Bold);
                FontList.Load(EFont.ScoreTwo, "Times New Roman", 4.0, Color.FromArgb(255, 180, 140, 0), FontStyle.Bold);
                //  SpriteList.Load(ESprite.green);
                FontList.Load(EFont.CoordsOnField, "Times New Roman", 1.5, Color.FromArgb(200, 200, 200), FontStyle.Bold);
                FontList.Load(EFont.Possession, "Times New Roman", 1.5, Color.FromArgb(150, 150, 150), FontStyle.Bold);
                FontList.Load(EFont.Goal, "Lucida Console", 20, Color.FromArgb(150, 220, 0, 0), FontStyle.Bold);

                SpriteList.Load(ESprite.explosion, defaultSizeExact: new Vector2d(50), defaultDepth: 10000, frameCountHorizontal: 6, frameCountVertical: 5);
            }
        }
コード例 #3
0
        public void LoadSpritesAndFonts()
        {
            if (FontList.All.Count == 0 && SpriteList.All.Count == 0)
            {
                FontList.Load(EFont.ScoreOne, "Times New Roman", 20.0, Color.FromArgb(150, 0, 180, 230), FontStyle.Bold);



                FontList.Load(EFont.timelineNormal, "Times New Roman", 12, Color.FromArgb(40, 40, 40));
                FontList.Load(EFont.timelineError, "Times New Roman", 14, Color.Red, FontStyle.Bold);
                FontList.Load(EFont.black, "Times New Roman", 15, Color.Black);
                //FontList.Load(EFont.Time, "Times New Roman", 2.0, Color.FromArgb(200, 200, 200), FontStyle.Bold);
                //FontList.Load(EFont.TeamOne, "Times New Roman", 2.0, Color.FromArgb(200, 0, 180, 230), FontStyle.Bold);
                //FontList.Load(EFont.TeamTwo, "Times New Roman", 2.0, Color.FromArgb(200, 180, 140, 0), FontStyle.Bold);
                //FontList.Load(EFont.ScoreTwo, "Times New Roman", 4.0, Color.FromArgb(255, 180, 140, 0), FontStyle.Bold);
                ////  SpriteList.Load(ESprite.green);
                //FontList.Load(EFont.CoordsOnField, "Times New Roman", 1.5, Color.FromArgb(200, 200, 200), FontStyle.Bold);
                //FontList.Load(EFont.Possession, "Times New Roman", 1.5, Color.FromArgb(150, 150, 150), FontStyle.Bold);
                //FontList.Load(EFont.Goal, "Lucida Console", 20, Color.FromArgb(150, 220, 0, 0), FontStyle.Bold);
            }
        }
コード例 #4
0
ファイル: Board.cs プロジェクト: LightRay2/ContestFramework
        public void LoadSpritesAndFonts()
        {
            if (FontList.All.Count > 0)
            {
                return;
            }
            FontList.Load(EFont.regular, "Arial", 20, Color.Black,
                          FontStyle.Regular);
            FontList.Load(EFont.teamSmall1, "Times New Roman", 15, Color.FromArgb(64, 178, 119), FontStyle.Bold);
            FontList.Load(EFont.teamSmall2, "Times New Roman", 15, Color.FromArgb(188, 64, 66), FontStyle.Bold);
            FontList.Load(EFont.teamSmall3, "Times New Roman", 15, Color.FromArgb(114, 91, 200), FontStyle.Bold);
            FontList.Load(EFont.teamSmall4, "Times New Roman", 15, Color.FromArgb(150, 147, 61), FontStyle.Bold);
            FontList.Load(EFont.teamBig1, "Times New Roman", 27, Color.FromArgb(64, 178, 119), FontStyle.Bold);
            FontList.Load(EFont.teamBig2, "Times New Roman", 27, Color.FromArgb(188, 64, 66), FontStyle.Bold);
            FontList.Load(EFont.teamBig3, "Times New Roman", 27, Color.FromArgb(114, 91, 200), FontStyle.Bold);
            FontList.Load(EFont.teamBig4, "Times New Roman", 27, Color.FromArgb(150, 147, 61), FontStyle.Bold);

            FontList.Load(EFont.timelineNormal, "Times New Roman", 10, Color.Black, FontStyle.Regular);
            FontList.Load(EFont.timelineError, "Times New Roman", 12, Color.Red, FontStyle.Bold);

            SpriteList.Load(ESprite.board10, defaultSizeExact: new Vector2d(431, 452));
            //   SpriteList.Load(ESprite.background);
            SpriteList.Load(ESprite.Design);

            SpriteList.Load(ESprite.red, defaultSizeExact: new Vector2d(40, 40));
            SpriteList.Load(ESprite.green, defaultSizeExact: new Vector2d(40, 40));
            SpriteList.Load(ESprite.violet, defaultSizeExact: new Vector2d(40, 40));
            SpriteList.Load(ESprite.yellow, defaultSizeExact: new Vector2d(40, 40));

            SpriteList.Load(ESprite.redRect);
            SpriteList.Load(ESprite.greenRect);
            SpriteList.Load(ESprite.violetRect);
            SpriteList.Load(ESprite.yellowRect);

            SpriteList.Load(ESprite.humanDestination, defaultSizeExact: new Vector2d(43, 43));
            SpriteList.Load(ESprite.humanSource, defaultSizeExact: new Vector2d(43, 43));
            SpriteList.Load(ESprite.humanPointer, defaultSizeExact: new Vector2d(43, 43));
        }