-
Notifications
You must be signed in to change notification settings - Fork 11
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
Reworking Cell.push() #12
Comments
Pushing will soon be updated to be non-recursive. Then there will be a "lastcell" parameter that always specifies the pushing cell (makes acids possible, cells that destroy what they are pushed into) |
How do you plan to achieve this? |
const [ox, oy] = dirToOff(cell.direction);
const genCell = grid.getCell(x+ox, y+oy);
if (!genCell) return;
pushCell(x, y, direction, { force: 42, lastcell: genCell.clone() }) This would be example generator code. |
42-? |
yea but how would you code this pushCell(x, y, direction, { force: 42, lastcell: genCell.clone() }) |
update cell.push when |
never :trell: No, I will work on it probably after the first release. |
update nowwwwwww |
Cell.push is as good as it is... just need to fix some diverger stuff |
u p d a t e |
Yes, update diverger interaction |
what diverger |
Redirector... My mind is CelLuaified |
Yes yes don't be annoying. I also have a private life 😀 |
No description provided.
The text was updated successfully, but these errors were encountered: