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

Variables #346

Open
Nardeem opened this issue Apr 20, 2024 · 1 comment
Open

Variables #346

Nardeem opened this issue Apr 20, 2024 · 1 comment

Comments

@Nardeem
Copy link

Nardeem commented Apr 20, 2024

Just a way for cells or the world to remember things. could help with making stuff like pheromones with ants and basically adds intelligence, maybe it could be a shape that would make something say "if [white][red] => [black][white] add 1 to var 1", so if that action is done, it would add 1 to the first variable. And this variable could also have options, like instead of setting a number, it could set relative coordinates on the board.

@TeraByte-Official
Copy link

Concept art
image
The function depends on where the triangle marked with a blue outline is facing.
Left: Add
Right: Add X coordinate
Up: Add Y coordinate
Down: Reset to 0

This does require down arrows to be implemented, but I think it's the best I can do.

As for functionality, the octagon shape makes it so that only 256 variables can be stored at once, but that's plenty. The values can be stored in a vector3, with the first two coordinates being X and Y, and the last coordinate being the variable's value.

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

2 participants