From 3ba9d342c37c948e2c22630ea11651fde3c9eba3 Mon Sep 17 00:00:00 2001 From: LISA NGUYEN <100586759@student.swin.edu.au> Date: Thu, 14 Mar 2019 13:48:18 +1100 Subject: [PATCH] added a new text font into the game --- Resources/fonts/Chunkfive.otf | Bin 0 -> 10916 bytes src/SnapGame.cs | 9 +++++---- 2 files changed, 5 insertions(+), 4 deletions(-) create mode 100644 Resources/fonts/Chunkfive.otf diff --git a/Resources/fonts/Chunkfive.otf b/Resources/fonts/Chunkfive.otf new file mode 100644 index 0000000000000000000000000000000000000000..c2ba1d969bbd01f916b7e563df10967b051892f2 GIT binary patch literal 10916 zcmZvC2S60p*6`gjv&*b5Aj|^0zFn{@DkxD57z+xbf*=S;5u^&z6c80r5iCG#(bx<2 zt`V^d7VJH0qQ;jPP0UOA^2KPPXEtXI{~6%r&-cD>;mn+S?z!idQ|_HJ6E<#K7!z0- zQ!)2pK|$_4bNB$pG~SH4my8Gxi+t?%{V2wIjAM*Z$*XT>c;!jP6b@9Ln3|hBCB(0w zkulX#g1F4|v}@^0HDA$_$nuz(;x}bI-Q1f; zq-Td(`&Tf#e{)a`N2O+N8o80_TX8kBXWd$HjtykKtvFBgLgG}YZP?(jU=ibsFJks6UTSoi%XXY2B=I0g56}|iQ_s>nvPR}pO z=$(_5(w8WG`}p+j_m`*^$!r+QWYbt4%Vt3=ixsnUTEz&K&vIEZQ6s24iRyExRKWVM z-psrC&!0uH(JY3IVgCPzgkFD>@W18%y*8TU7tlIqQIC1l^WS?2XOTpa`};Sw5A~Kw zoJB0PnZNk27QI7(nJ0rrn?sUQ$in4u_ojOv=0n$h|HqjB|D0umk}Z!w z(V^8E+RIvNE;9u$GqnCz(p`rC_^q5dr)1TZ?Q<7Z7H*yX;jDR+GP5RU=j7()Pbn_j zv|(fE4u#fE*T%7(le3%A)czlq&Rx28>)yl5yH8)A1w{+V*530UIB4+jz@QN!p<}|r zBgV(Z#V1TiNli=7s8~0DEt#^=*4(jIzxVt5`mqm&3>z8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k! z?#^`b{XaqZ33F2(V)o7ODd9{02KlY{9OkCdQd`E{6oj`x)7!uByUbbTMZ77*_bY*S z3n*X6{Wg6i-~R`c5$|tAdrtQ&1P#r&T>c-R;+o#7fM6K$Y-)O|yg~Qz#Pc^$?fP4J zIkPC8n4%d?mt0MPBO}J#zt1Cn9r&S7=fD%&2{IPJFShE4D{XM=w{H6ECPiO z^+mw`pgFkH`pP=HLSx<3^gE4<5v*&L@s{9`XkyX8uR;d9YGw)?57&a{0aKB zLbH7~e=(z=t3Y4k^kj;h @@ -40,9 +41,9 @@ 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.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