Skip to content

Commit e345e71

Browse files
Merge pull request #1 from Preponderous-Software/cleaning-up
Cleaning Up
2 parents 9c6718f + 0e714e7 commit e345e71

File tree

4 files changed

+9
-12
lines changed

4 files changed

+9
-12
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
target

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Grafik
1+
# Graphik
22
This library assists developers with graphics programming.
33

44
## Dependencies

src/Graphik.py renamed to src/main/python/preponderous/graphik/graphik.py

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,5 @@
11
import pygame
22

3-
black = (0,0,0)
4-
white = (255,255,255)
5-
red = (200,0,0)
6-
green = (0,200,0)
7-
blue = (0,0,200)
8-
9-
graphiklibversion = "0.2-alpha-1"
103

114
# @author Daniel McCoy Stephenson
125
# @since February 3rd, 2022
@@ -16,13 +9,15 @@ def __init__(self):
169
displayHeight = 600
1710
self.gameDisplay = pygame.display.set_mode((displayWidth, displayHeight))
1811

19-
self.version = graphiklibversion
12+
self.black = (0,0,0)
13+
self.white = (255,255,255)
14+
self.red = (200,0,0)
15+
self.green = (0,200,0)
16+
self.blue = (0,0,200)
2017

2118
def __init__(self, gameDisplay):
2219
self.gameDisplay = gameDisplay
2320

24-
self.version = graphiklibversion
25-
2621
def getGameDisplay(self):
2722
return self.gameDisplay
2823

@@ -48,4 +43,4 @@ def drawButton(self, xpos, ypos, width, height, colorBox, colorText, sizeText, t
4843
if (xpos + width > mouse[0] > xpos and ypos + height > mouse[1] > ypos):
4944
click = pygame.mouse.get_pressed()
5045
if click[0] == 1:
51-
function()
46+
function()

version.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
0.2.0

0 commit comments

Comments
 (0)