diff --git a/Resources/fonts/ChunkFive-Regular.otf b/Resources/fonts/ChunkFive-Regular.otf new file mode 100644 index 000000000..7711f20f9 Binary files /dev/null and b/Resources/fonts/ChunkFive-Regular.otf differ diff --git a/src/SnapGame.cs b/src/SnapGame.cs index ec78e9072..ac84e934e 100644 --- a/src/SnapGame.cs +++ b/src/SnapGame.cs @@ -11,6 +11,7 @@ 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-Regular.otf", 12); } /// @@ -43,7 +44,7 @@ private static void DrawGame(Snap myGame) 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.DrawCell (SwinGame.BitmapNamed ("Cards"), top.CardIndex, 521, 153); } else { @@ -51,7 +52,7 @@ private static void DrawGame(Snap myGame) } // Draw the back of the cards... to represent the deck - SwinGame.DrawCell (SwinGame.BitmapNamed ("Cards"), 52, 160, 50); + SwinGame.DrawCell (SwinGame.BitmapNamed ("Cards"), 52, 155, 153); //Draw onto the screen SwinGame.RefreshScreen(60);