Skip to content

Commit

Permalink
updated README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Catz1301 committed Aug 31, 2023
1 parent 9e56499 commit 2cfe65f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,14 @@ This is a web clone of the game "Connect Me - Logic Puzzle" by Viktor Bohush.
+ clicking a square will also select that square. (this will be used for the editor)
+ the state of square editing will be controlled by a variable. *editingSquare" (this will be used for the editor)
+ in mousePressed function
`if (isEditing) {
```
if (isEditing) {
get square to be clicked
'1' will add a connector to the top of the square. if there is already 4 connectors, then all top connectors will be removed.
'r' will rotate the square.
'2' will add a connector to the right of the square. if there is already 4 connectors, then all right connectors will be removed.
'3' will add a connector to the bottom of the square. if there is already 4 connectors, then all bottom connectors will be removed.
'4' will add a connector to the left of the square. if there is already 4 connectors, then all left connectors will be removed.
}`
}
```
+ if we are in "add square" mode, then we will add a square to the board when clicking, instead of editing. if a square already exists, then we should not add a square.

0 comments on commit 2cfe65f

Please sign in to comment.