Skip to content

Commit

Permalink
Update editor.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Notenlish committed Jun 18, 2023
1 parent fef8103 commit 41a04a8
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/js/editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,6 @@ canvas.addEventListener("mousedown", (event) => {
});

function canvasOnMouseMove(event) {
console.log(event.button);
modifyCell(event, eventButtonBefore);
}

Expand Down Expand Up @@ -304,15 +303,10 @@ function modifyCell(event, button) {
cell["direction"] = parseInt(eyeDirectionInput.value);
}
if (button == 0) {
console.log("sol");
cell["state"] = { name: currentCellType };
organism.anatomy.cells.push(cell);
modifiedCells.push([tileX, tileY]);
console.log(
`Added Cell: ${[tileX, tileY]} length:${organism.anatomy.cells.length}`
);
} else if (button == 2) {
console.log("sağ");
for (let i = organism.anatomy.cells.length - 1; i > -1; i--) {
let c = organism.anatomy.cells[i];
if (c.loc_col == tileY && c.loc_row == tileX) {
Expand Down

0 comments on commit 41a04a8

Please sign in to comment.