Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Maze game changes #282

Merged
merged 1 commit into from
Apr 17, 2023
Merged
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
5 changes: 1 addition & 4 deletions Maze_Game/src/containers/MazeComponent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -154,12 +154,9 @@ function setCells(p: any, circles: number) {
const angles = [];

for (let j = 0; j <= i + 1; j++) {
const a = p.random(0, 360);
const a = p.random(0, 350);
angles.push(a);
}

// const r = (radius1 - circlegap * i) / 2;

const r = (radius1/circles) * (i+1);
const pos = p.createVector(cx, cy);
const c = new Circle(pos, i, angles, r, gap);
Expand Down