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

Reworking Cell.push() #12

Open
NKY5223 opened this issue Feb 23, 2022 · 14 comments
Open

Reworking Cell.push() #12

NKY5223 opened this issue Feb 23, 2022 · 14 comments

Comments

@NKY5223
Copy link

NKY5223 commented Feb 23, 2022

No description provided.

@blaumeise20
Copy link
Owner

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)

@NKY5223
Copy link
Author

NKY5223 commented Feb 23, 2022

How do you plan to achieve this?

@blaumeise20
Copy link
Owner

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.

@NKY5223
Copy link
Author

NKY5223 commented Feb 24, 2022

42-?

@NKY5223
Copy link
Author

NKY5223 commented Feb 24, 2022

yea but how would you code this

pushCell(x, y, direction, { force: 42, lastcell: genCell.clone() })

@NKY5223 NKY5223 changed the title Cell.push() should have an argument for the cell pushing (e.g. a Mover) Reworking Cell.push() Mar 5, 2022
@NKY5223
Copy link
Author

NKY5223 commented Jul 10, 2022

update cell.push when

@blaumeise20
Copy link
Owner

never :trell:

No, I will work on it probably after the first release.

@NKY5223
Copy link
Author

NKY5223 commented Jul 16, 2022

update nowwwwwww
you already released now remake jell machine

@uku1928
Copy link
Contributor

uku1928 commented Jul 16, 2022

Cell.push is as good as it is... just need to fix some diverger stuff

@NKY5223
Copy link
Author

NKY5223 commented Jul 16, 2022

u p d a t e

@uku1928
Copy link
Contributor

uku1928 commented Jul 16, 2022

Yes, update diverger interaction

@NKY5223
Copy link
Author

NKY5223 commented Jul 16, 2022

what diverger

@uku1928
Copy link
Contributor

uku1928 commented Jul 16, 2022

Redirector... My mind is CelLuaified
so yeah update Redirectors, Tunnels, Crossways and Crossdirectors.

@blaumeise20
Copy link
Owner

Yes yes don't be annoying. I also have a private life 😀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants