Added big icon to main menu,

Added small icon.
This commit is contained in:
The Wobbler 2023-11-19 14:31:16 +01:00
parent b61d5406d4
commit c78b73976a
3 changed files with 5 additions and 1 deletions

View file

@ -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()

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 913 B

BIN
textures/icon_full.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB