Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__pycache__
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ Find the documentation of functions, Game Details and other instructions for Ind

Have a great Introduction to Programming!

![image description](logo.jpeg)
![image description](assets/logo.jpeg)

Binary file removed __pycache__/base.cpython-38.pyc
Binary file not shown.
Binary file removed __pycache__/collectible.cpython-38.pyc
Binary file not shown.
Binary file removed __pycache__/robot.cpython-38.pyc
Binary file not shown.
Binary file removed __pycache__/script.cpython-38.pyc
Binary file not shown.
Binary file removed __pycache__/scriptblue.cpython-38.pyc
Binary file not shown.
Binary file removed __pycache__/scriptred.cpython-38.pyc
Binary file not shown.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
4 changes: 2 additions & 2 deletions base.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ def __init__(self, screen, x, y, type, __robot_list, __robot_map, game):
self.__Signal = ''

if type == "red":
self.image = pygame.image.load("redbase.png")
self.image = pygame.image.load("assets/redbase.png")
else:
self.image = pygame.image.load("bluebase.png")
self.image = pygame.image.load("assets/bluebase.png")
self.rect = self.image.get_rect()

self.rect.x = x
Expand Down
4 changes: 2 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def __init__(self):
self.__resources[19][9] = 0
self.__resources[19][29] = 0
self.GlobalRobotCount = 0
self.explosion = pygame.image.load("explode.png")
self.explosion = pygame.image.load("assets/explode.png")
self.rate = 10

self.__collectibles = []
Expand Down Expand Up @@ -206,7 +206,7 @@ def check_collisions(self):

def create_map(self):
"""Take info about __collectibles and create the map"""
im = cv2.imread("test_img3.jpg", cv2.IMREAD_GRAYSCALE)
im = cv2.imread("assets/test_img3.jpg", cv2.IMREAD_GRAYSCALE)
im = cv2.resize(im, (40,40))
im = np.array(im)
im = im - np.full((40,40), 127)
Expand Down
4 changes: 2 additions & 2 deletions robot.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ def __init__(self, screen, x, y, type, signal, base):
# Integer less than 2^31 -1
self.__Initialsignal = signal
if type == "red":
self.image = pygame.image.load("red_robot.png")
self.image = pygame.image.load("assets/red_robot.png")
else:
self.image = pygame.image.load("blue_robot.png")
self.image = pygame.image.load("assets/blue_robot.png")
self.rect = self.image.get_rect()

self.rect.x = x
Expand Down