주 콘텐츠로 건너뛰기

검색

Is there a plan for arrays?

  • Aecert

    You can loop over things using counters, but yeah I hope they add more variable functionality.

  • davidnorth100

    I just want to say, yes, please add some complex data types! I have ideas that can only realistically be realised with a multi-dimensional array of numbers.

  • dr_murk

    One way to make a two dimensional array: do it in physical space.

    Create an NxM matrix of cubes. Creates another cube to be your "head" which is used to read and write to the matrix.

    Index them using the x and y coordinate, corresponding to 0 through N and 0 through M.

    Store values in them using color- use just one channel, such as red. This allows you to store a number from zero to one in each of them.

    Set the logic on the head so it can go to location x,y given two inputs. A directional, narrow wireless receiver can read whats on the square below it. A little more logic can write to it and change the color.

    Setting them to non collidable, invisible, and looser can help the optimization.

  • ProtoQuasar

    Dr_murk I did consider that. I think that’s the only method right now.

  • GBO-Possum

    '@dr_murk, thank you for the suggestion of using physical space. Have you seen any implementations in the Dreamiverse?

댓글을 남기려면 로그인하세요.