Skip to content
Snippets Groups Projects
Commit 611a64cd authored by Hameed Andy's avatar Hameed Andy
Browse files

font changed, png snake removed, background of rectangles changed

parent 9a7ce73c
No related branches found
No related tags found
No related merge requests found
......@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment