From 611a64cdef0045dda72f3571fe6fafc7d2181b09 Mon Sep 17 00:00:00 2001 From: andyh98 <hameea1@mcmaster.ca> Date: Wed, 21 Nov 2018 20:18:30 -0500 Subject: [PATCH] font changed, png snake removed, background of rectangles changed --- BlankProjectTemplate/src/Interface.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/BlankProjectTemplate/src/Interface.py b/BlankProjectTemplate/src/Interface.py index 75302d3..041f311 100644 --- a/BlankProjectTemplate/src/Interface.py +++ b/BlankProjectTemplate/src/Interface.py @@ -34,17 +34,17 @@ class GUI(): # @details This will output the main page of this game by using the class above def main(): pygame.init() - lightBlue = [200,200,200] + lightBlue = [89,131,145] darkgray = [100,100,100] image1 = pygame.image.load("Snake_Game_Logo_background.png") - image2 = pygame.image.load("snake_image.png") +## image2 = pygame.image.load("snake_image.png") #while loop required to always refresh the page run = True while run: game = pygame.display.set_mode((800, 610)) game.blit(image1,(0,0)) - game.blit(image2,(550,0)) +## game.blit(image2,(550,0)) mousepos = pygame.mouse.get_pos() #checking mouse position mouseclick = pygame.mouse.get_pressed()#checking mouse pressed pygame.display.set_caption("Lets Play") @@ -58,7 +58,7 @@ def main(): theme.Themes.themes() else: GUI.button(game,lightBlue, [400,250,170,50], 0) - GUI.text('Beginner',"comicsansms", 35,[10, 200, 10],(410,250),game) + GUI.text('Beginner',"maiandragd", 25,[239, 245, 224],(438,260),game) if (430 <= mousepos[0] <= 430+220 and 350 <= mousepos[1] <= 350+50 ): #checks if the mouse is hovering over the button @@ -68,7 +68,7 @@ def main(): theme.Themes.themes() else: GUI.button(game,lightBlue, [430,350,220,50], 0) - GUI.text('Intermediate',"comicsansms", 35,[250, 250, 10],(430,350),game) + GUI.text('Intermediate',"maiandragd", 25,[239, 245, 224],(470,357),game) if (400 <= mousepos[0] <= 400+180 and 450 <= mousepos[1] <= 450+50 ): #checks if the mouse is hovering over the button @@ -78,7 +78,7 @@ def main(): theme.Themes.themes() else: GUI.button(game,lightBlue, [400,450,180,50], 0) - GUI.text('Advanced',"comicsansms", 35,[200, 10, 30],(410,450),game) + GUI.text('Advanced',"maiandragd", 25,[239, 245, 224],(435,457),game) if (15 <= mousepos[0] <= 15+115 and 565 <= mousepos[1] <= 565+35 ): if mouseclick[0] == 1: -- GitLab