Skip to content

Commit

Permalink
Created Game Structure - Part 24 - Refactor code
Browse files Browse the repository at this point in the history
  • Loading branch information
karpo27 committed May 15, 2023
1 parent acb2a1d commit 53b2e4d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion splash.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ def __init__(self):
self.splash = [TextCreator(0, "Karpo27 Game", self.font_type, 48, 48, "white", "blue",
(self.pos_x, self.pos_y), "", 70)
]

# Time Parameters:
self.time_active = 0

Expand Down
4 changes: 2 additions & 2 deletions submenus.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,15 @@ class Credits(BaseState):
def __init__(self):
# Screen Text and Options:
super().__init__()
self.pos = self.pos_x, self.pos_y = WIDTH / 2, HEIGHT / 3
self.pos = self.pos_x, self.pos_y = WIDTH/2, HEIGHT/3
self.text = ["May 2023", "Game Project is a Python game developed by me: Julian Giudice (github.com/karpo27).",
"It's my first game since I started learning Python 6 months ago.",
"I want to thank Pygame for allowing me to use this module,",
"and allow so many users to code their games.",
"I'll keep coding and trying myself harder to incorporate to the IT world."]
self.credits = []
self.credits.append(TextCreator(self.index, "BACK", self.font_type, 48, 48, self.base_color, self.hover_color,
(WIDTH / 2, 5 / 6 * HEIGHT), "", 50))
(WIDTH/2, 5/6 * HEIGHT), "", 50))
for index, text in enumerate(self.text):
self.credits.append(
TextCreator(index + 1, text, self.font_type, 22, 52, self.base_color, self.hover_color, self.pos,
Expand Down

0 comments on commit 53b2e4d

Please sign in to comment.