Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
se3xa3
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hameed Andy
se3xa3
Commits
4b3a79cb
Commit
4b3a79cb
authored
6 years ago
by
Hameed Andy
Browse files
Options
Downloads
Patches
Plain Diff
File associations fixed
parent
d672c4cd
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
BlankProjectTemplate/src/Interface.py
+2
-1
2 additions, 1 deletion
BlankProjectTemplate/src/Interface.py
BlankProjectTemplate/src/highscore.py
+1
-1
1 addition, 1 deletion
BlankProjectTemplate/src/highscore.py
with
3 additions
and
2 deletions
BlankProjectTemplate/src/Interface.py
+
2
−
1
View file @
4b3a79cb
#importing necessary libraries
import
pygame
,
sys
import
highscore
class
GUI
():
#a function made to execute other files from the system
def
runfile
(
runfilename
):
...
...
@@ -36,7 +37,7 @@ def main():
GUI
.
button
(
game
,
darkgray
,
[
270
,
455
,
250
,
50
],
0
)
#checking if the button is clicked
if
mouseclick
[
0
]
==
1
:
GUI
.
runfile
(
'
Snake_2.o_Demo
.py
'
)
GUI
.
runfile
(
'
Gameplay
.py
'
)
else
:
GUI
.
button
(
game
,
gray
,
[
270
,
455
,
250
,
50
],
0
)
GUI
.
text
(
'
GAME TIME
'
,
"
comicsansms
"
,
40
,[
0
,
0
,
200
],(
275
,
450
),
game
)
...
...
This diff is collapsed.
Click to expand it.
BlankProjectTemplate/src/highscore.py
+
1
−
1
View file @
4b3a79cb
import
pygame
,
sys
import
Snake_Gam
e
import
Interfac
e
class
HighScore
():
def
runfile
(
runfilename
):
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment