[英]How can I create a “grid” layout where everyone knows their neighbour?
Hey there guys, I was wondering what the easiest way to create a grid-layout in Javascript/jQuery that will allow each "node" to talk to their nearest neighbours (up, down, left and right). 嘿那些家伙,我想知道在Javascript / jQuery中创建网格布局的最简单方法是什么,这将允许每个“节点”与他们最近的邻居(上,下,左和右)交谈。
Does anyone have an idea?! 有没有人有想法?! :)
:)
这听起来像生命游戏逻辑。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.