Skip to content

Commit

Permalink
readme
Browse files Browse the repository at this point in the history
  • Loading branch information
MalyszekTobias committed Feb 28, 2024
1 parent 8d0d03b commit d8b611b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ There are two ways to install the project: download exe file, or run the project
- While in _drawing mode_ you can draw a new object by clicking different places on screen.
- You can also delete the last point placed by pressing `Backspace` or move a point by `right clicking`.
- Then, when `Enter` is pressed, a mirror in the desired shape is added to the environment.
- It's possible to exit this mode by simply clicking on the icon again.
* Press `Up Arrow` to randomize colors of all flashlights.


Expand Down
2 changes: 1 addition & 1 deletion gui/button.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ def checkifclicked(self, mousepos):
if self.number == 4:
if classes.game.isDrawingModeOn == True:
classes.game.isDrawingModeOn = False
self.game.polygonDrawing.clearPoints()
classes.game.polygonDrawing.clearPoints(classes.game.polygonDrawing())

elif classes.game.isDrawingModeOn == False:
classes.game.isDrawingModeOn = True
Expand Down
1 change: 1 addition & 0 deletions gui/polygonDrawing.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ def addPoint(self, mousePos):
# for i in currentPolygonPoints:
# pygame.draw.circle(screen, (200, 200, 200), i, 10)
def clearPoints(self):
print(12345)
self.currentPolygonPoints = []
def createPolygon(self, game):
print('created')
Expand Down

0 comments on commit d8b611b

Please sign in to comment.