diff --git a/Resources/fonts/Chunkfive.otf b/Resources/fonts/Chunkfive.otf new file mode 100644 index 000000000..c2ba1d969 Binary files /dev/null and b/Resources/fonts/Chunkfive.otf differ diff --git a/src/SnapGame.cs b/src/SnapGame.cs index ec78e9072..4adf8c144 100644 --- a/src/SnapGame.cs +++ b/src/SnapGame.cs @@ -11,7 +11,8 @@ public static void LoadResources() Bitmap cards; cards = SwinGame.LoadBitmapNamed ("Cards", "Cards.png"); SwinGame.BitmapSetCellDetails (cards, 82, 110, 13, 5, 53); // set the cells in the bitmap to match the cards - } + SwinGame.LoadFontNamed("GameFont", "Chunkfive.otf", 12); + } /// /// Respond to the user input -- with requests affecting myGame @@ -40,10 +41,10 @@ private static void DrawGame(Snap myGame) Card top = myGame.TopCard; if (top != null) { - SwinGame.DrawText ("Top Card is " + top.ToString (), Color.RoyalBlue, 0, 20); - SwinGame.DrawText ("Player 1 score: " + myGame.Score(0), Color.RoyalBlue, 0, 30); - SwinGame.DrawText ("Player 2 score: " + myGame.Score(1), Color.RoyalBlue, 0, 40); - SwinGame.DrawCell (SwinGame.BitmapNamed ("Cards"), top.CardIndex, 350, 50); + SwinGame.DrawText("Top Card is " + top.ToString(),Color.RoyalBlue, "GameFont", 0, 20); + SwinGame.DrawText("Player 1 score: " + myGame.Score(0),Color.RoyalBlue, "GameFont", 0, 30); + SwinGame.DrawText("Player 2 score: " + myGame.Score(1),Color.RoyalBlue, "GameFont", 0, 40); + SwinGame.DrawCell(SwinGame.BitmapNamed("Cards"),top.CardIndex, 350, 50); } else {