Skip to content

Can't replicate example: Grid #52

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

Open
fredguth opened this issue Oct 24, 2021 · 1 comment
Open

Can't replicate example: Grid #52

fredguth opened this issue Oct 24, 2021 · 1 comment

Comments

@fredguth
Copy link

I am trying to replicate: http://printingcode.runemadsen.com/examples/grid/only_once/

This throws an error:

var modules = grid.modules.slice();

I couldn't find modules in grid. What am I doing wrong?

@runemadsen
Copy link
Owner

Thanks @fredguth. This is an example based on an older version of Rune.js. The grid.modules array was replaced by grid.children which is used throughout the library as a scene graph. You could try rewriting this example by not copying the grid.modules array and instead getting randomized modules using the grid.getModule() function.

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