From c78b73976a481358db5a7c6673599745719de283 Mon Sep 17 00:00:00 2001 From: EKNr1 Date: Sun, 19 Nov 2023 14:31:16 +0100 Subject: [PATCH] Added big icon to main menu, Added small icon. --- cowyeet.py | 6 +++++- textures/icon.png | Bin 1961 -> 913 bytes textures/icon_full.png | Bin 0 -> 1961 bytes 3 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 textures/icon_full.png diff --git a/cowyeet.py b/cowyeet.py index 3844f60..517cc70 100644 --- a/cowyeet.py +++ b/cowyeet.py @@ -80,11 +80,14 @@ def load_block_texture(path: str): return pygame.transform.scale(texture, (40 * settings["level_size_multiplier"], 40 * settings["level_size_multiplier"])) +icon_texture = load_texture("textures/icon.png") +full_icon_texture = load_texture("textures/icon_full.png") +full_icon_texture = pygame.transform.scale(full_icon_texture, (260, 90)) stone_block_texture = load_block_texture("textures/terrain/stone_01.png") dirt_block_texture = load_block_texture("textures/terrain/dirt_01.png") grass_block_texture = load_block_texture("textures/terrain/grass_01.png") rock_block_texture = load_block_texture("textures/terrain/rock_01.png") -icon_texture = load_texture("textures/icon.png") + # coordinate calculations @@ -181,6 +184,7 @@ def blit_block(block, position: tuple): def main_menu_page(): + screen.blit(full_icon_texture, (center_x(full_icon_texture.get_width()), 128)) buttons[start_button].blit() diff --git a/textures/icon.png b/textures/icon.png index 787f1b91c2c8e8f3215ac85dbb7ab3d93f7f56ba..afc07d9aba29a4db5665900c59c4b404b4057cd3 100644 GIT binary patch literal 913 zcmV;C18)3@P)Nkl-uyid&*3XDNyF9udtSm(3u6b+rNd$?=j1a(B9xrPr+j z0!iVQjE4*|S8qqtAgh?bpB6w~YMZQbPhoXHl z8lrVXW~m5?U;>iSCgSgMJ&}JC5!GN<3*tnsZ$e}+HIv5BlRRA>rjIWH?vCVQb+rm) z%ogQ2z^)+^A+SbWZITPB5?RU;LtWZ*LM7EjOGi%T8UnHkeM@%ZJ&VwQgplOC_b8|`%lfHrkfe;OQI#=4pbKr*868=04jvupB$buml^E)?FzoWe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^m(P;`J0EYWH&~;BOHqHRHE?_ro-z@7Lp)F_`|2@;Flp;M>B;Q~E-AbW_-)2> v!HaoO0x=DKsRTg0xEF?DLFOx7@x1XrPL%ZQ-69hO00000NkvXXu0mjfbpwO( diff --git a/textures/icon_full.png b/textures/icon_full.png new file mode 100644 index 0000000000000000000000000000000000000000..787f1b91c2c8e8f3215ac85dbb7ab3d93f7f56ba GIT binary patch literal 1961 zcmV;a2UhrrP)1&h5S~4(5dkWEfU5vk-xcZn4p$g*ae09&d=KHul`B6) zQsf16g#{ORhjb})wSiOyl0tw28{ieo;SPs0$oPVY>as2aLAA9n6EQ=t5S_REQ01@u8Zm0kL;UQR! zE2!b>WCrIqTWp`z>}6etKL7i3QcEIXC-KrQErL_7p?$)#u3=f%@c!YU!b@sw(QG7v z??)VOLTJq6I{tqQj7fw<;BFmXq+Q?sgB8$(4*+m}vxRqW-()*OH=^}5LH7`mU~DoB zC4w&a+eO-Vz~ryb4gnx&Zq6h|_q;%(@t74515xi*rUGsWK>B|O`Z~n0Xkjw*RPf1n zn-#b{V8b$$)1sIteKx+jE2_};@XhQevS&V~9=xPxX?T7h7Cc%h6 zl6b3NvL>e=e*gf$@1GwqrjV>a=+Ar1ifX_|vhnawoMFbK60DS%Sb80SOZ|GzZ29aR1qW=YLTYUHq04*8lCAka9 zDsXLQSM)528FD0;wlx6Y>p2)!BE%AzF92r8%~ir?Rh%>>1Nfp*rj8IH7x{ZsT+6Rc zX5j*OLL}HBEUqDT2^LGB2%foxNYY3K_d$*UxLe2se&W#QH(Pgg0`Ttb8~FO|XSgv@ z66jhmI|kT(8GS%gjF6B3Edig9KmZ{o2#dX}>&OM5u#pr9N`m`O8&fSoKy`kzbpTtf zMlgk)*yc-?A%rzNy4cx7N<>H}D!BtjfSm9-kPPUn0UE(08IT0`pElvX_xpVWSAl;g zZW;E3WIZLJ_%|kbq69C@7(%n}8DF;O}|!!Ka2#2yxv- za<6_JalMfc9g0SSc1&|bNCQMfo&?s3Q~<57Km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