From 0c8a13e68a280cfbcb3248e0c33937f6553c841d Mon Sep 17 00:00:00 2001 From: Harishankar Date: Sat, 1 Oct 2011 11:22:06 +0530 Subject: [PATCH] Added a different font Added a more suitable font for the game --- font/HarisComic-2.ttf | Bin 26120 -> 0 bytes font/harisgamefont.ttf | Bin 0 -> 40936 bytes maingame.py | 44 +++++++++++++++++++++++++++++++---------- objects/key.png | Bin 471 -> 372 bytes objects/key2.png | Bin 0 -> 345 bytes utility.py | 14 ++++++------- 6 files changed, 41 insertions(+), 17 deletions(-) delete mode 100644 font/HarisComic-2.ttf create mode 100644 font/harisgamefont.ttf create mode 100644 objects/key2.png diff --git a/font/HarisComic-2.ttf b/font/HarisComic-2.ttf deleted file mode 100644 index 8c69af2e2a085e1a2a9f7b994db021197382b22d..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 26120 zcmbWgcbsI`T_<|axjE-hIfqWwRn^_qxqG@N=aDos8YN33jYc!do*7A&v1|!21_#;3 zNlvV>dA1iDC&2c47uK+>;eiu8SXdtLfdw80Y_AD6*x1wiJ@-~i`eS)~-s_s~x^?T; zt#f|o7rwuAh9exuncUMH&z(AO;Pmk`UwOyha@@UN$Jye^n`Vb+|K_e&avV8_*Jtl} z==`Jo|4X`!-)XOXo6`lH;J9CZmHxHe=bdlwbomPZ3`aQyzu6By!#}gr z%gqs$eLw=8#y>9{;l!zn`!C>5RqkVaai_@LjG{XSws__1yim$URP)+|%SW zT!(y;J4-He)8w;Uk$i|N(gv>iC9Xl8rW-lJ9d< z^gnSwO3x+CGrR0 zmRW9@{2{kOC%J9%AGlZ1b#6rdn!7~4i_c7PZ=*eKgRXGDOyA4hjr*P^AHnA@aRGTh z#`|&Z!{n`8NZ!c(XROTkxvy|H;GVPOSGYQPH^$N6_K}a_^}D#+$X9Ux-{wkWo*R-A zJKrH6#JnzZRr*fM_rGH-AI4a}!mX3v!uS6T_YmkhN3L-f$v7>YPN(sTtyqy0IL515%3YLu zCHFq=-*X>>lyF$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z_QrqRz!j7jmec=xBI$LA2?4$nAuTx5YiHMbkz3w;rdL*8k<*)P$zSH_u VTEf>}rUQM%;OXk;vd$@?2>{W}fYAT| literal 0 HcmV?d00001 diff --git a/utility.py b/utility.py index 9c68c05..5ef5428 100644 --- a/utility.py +++ b/utility.py @@ -5,7 +5,7 @@ import os.path # function to draw text on surface def put_text (surface, x, y, size, (r,g,b), text): - harisfont = os.path.join ("font", "HarisComic-2.ttf") + harisfont = os.path.join ("font", "harisgamefont.ttf") textsurf = pygame.font.Font (harisfont, size).render (text, True, pygame.Color (r,g,b)) surface.blit (textsurf, (x, y)) @@ -13,19 +13,19 @@ def put_text (surface, x, y, size, (r,g,b), text): def put_lines (surface, text_lines): textsurfs = [] height = 0 - harisfont = os.path.join ("font", "HarisComic-2.ttf") + harisfont = os.path.join ("font", "harisgamefont.ttf") for size, r, g, b, text in text_lines: s = pygame.font.Font (harisfont, size).render (text, True, pygame.Color (r,g,b)) - # add 10 for spacing - height = height + s.get_height() + 10 + # add spacing + height = height + s.get_height()*1.5 textsurfs.append (s) scrwidth = surface.get_width () scrheight = surface.get_height () i = 0 for s in textsurfs: - surface.blit (s, (scrwidth/2 - s.get_width()/2, scrheight/2 - height/2+ i*s.get_height()+10)) + surface.blit (s, (scrwidth/2 - s.get_width()/2, scrheight/2 - height/2+ i* (s.get_height()*1.5))) i += 1 # function to ask a question and return answer @@ -34,7 +34,7 @@ def ask_question (surface, question, answers, bgscreen): sel_answer = 1 while 1: - textarray = [ [ 22, 128, 0, 0, question ] ] + textarray = [ [ 10, 128, 0, 0, question ] ] i = 1 for answer in answers: @@ -42,7 +42,7 @@ def ask_question (surface, question, answers, bgscreen): r, g, b = 0, 0, 216 else: r, g, b = 0, 0, 0 - textarray.append ( [20, r, g, b, answer] ) + textarray.append ( [10, r, g, b, answer] ) i += 1 -- 2.20.1