C4D扫雷游戏Minesweeper Test in Cinema 4D

C4D扫雷游戏Minesweeper Test in Cinema 4D  [复制链接]

C4D作品 2015-04-15 10:18 发布

版权归原作者所有,仅供交流学习,禁止商业使用!
C4D作品
作品属性: 转载
作品方向: 三维综合 
使用软件: C4D 
渲染器: 软件自带 
作品作者: 菜鸟C4D
检索码: -


100913s0lawzb1eytlcfdh.png
Hi,
嗨,
how to create multidimensional array in python ?
如何创建Python中的多维数组?
that's what I was looking for
这就是我要找的是:)
in java it's quite easy, for instance, to create Integer array ;

在Java很容易,例如,创建整数数组;
int[][] arrayName = { {0,1,2} , {0,1,2} };  

and to do the same thing in python,

和在Python做同样的事情,
arrayName = map(range,[3] * 2)
print arrayName
# [ [0,1,2], [0,1,2] ]
to test this, I made a basic version of the Minesweeper game in c4d since we can use 2D array to define the grid.
为了测试这一点,我做的扫雷游戏的基本版本中C4d既然我们能用二维数组来定义网格。
here's an example :
这里的一个例子:




其他C4D游戏模型
C4D游戏模型-俄罗斯方块 Tetris for Cinema 4D
C4D游戏工程模型-贪吃蛇xpresso节点制作
C4D游戏模型-飞扬的小鸟 FlappyBird
C4D游戏模型-太空射击飞机大战 Space Shooter for Cinema 4D
C4D扫雷游戏Minesweeper Test in Cinema 4D
C4D扫雷游戏Minesweeper Test in Cinema 4D 
关闭

菜鸟C4D推荐上一条 /9 下一条

菜鸟C4D与你一起从零开始!
十年专注C4D学习

( 浙ICP备13033195号-2 )Copyright   ©2013-2024  Powered by©Discuz!  技术支持:cainiao    

|网站地图