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

File associations fixed

parent d672c4cd
No related branches found
No related tags found
No related merge requests found
#importing necessary libraries #importing necessary libraries
import pygame, sys import pygame, sys
import highscore import highscore
class GUI(): class GUI():
#a function made to execute other files from the system #a function made to execute other files from the system
def runfile(runfilename): def runfile(runfilename):
...@@ -36,7 +37,7 @@ def main(): ...@@ -36,7 +37,7 @@ def main():
GUI.button(game,darkgray, [270,455,250,50], 0) GUI.button(game,darkgray, [270,455,250,50], 0)
#checking if the button is clicked #checking if the button is clicked
if mouseclick[0] == 1: if mouseclick[0] == 1:
GUI.runfile('Snake_2.o_Demo.py') GUI.runfile('Gameplay.py')
else: else:
GUI.button(game,gray, [270,455,250,50], 0) GUI.button(game,gray, [270,455,250,50], 0)
GUI.text('GAME TIME',"comicsansms", 40,[0, 0, 200],(275,450),game) GUI.text('GAME TIME',"comicsansms", 40,[0, 0, 200],(275,450),game)
......
import pygame, sys import pygame, sys
import Snake_Game import Interface
class HighScore(): class HighScore():
def runfile(runfilename): def runfile(runfilename):
......
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