现在位置 >首页 > game
2℃
2011年05月13日 shell ⁄ 被围观 26,015 次+
超级shell脚本写的俄罗斯方块游戏,真的很佩服! 点我下载 代码如下: #!/bin/bash       # Tetris Game       #APP declaration    APP_NAME="${0##*[\\/]}"   APP_VERSION="1.0"         #颜色定义    cRed=1   cGreen=2   cYellow=3   cBlue=4   cFuchsia=5   cCyan=6   cWhite=7   colorTable=($cRed $cGreen $cYellow $cBlue $cFuchsia $cCyan $cWhite)       #位置和大小    iLeft=3   iTop=2   ((iTrayLeft = iLeft + 2))    ((iTrayTop = iTop + 1))    ((iTrayWidth = 10))    ((iTrayHeight = 15))  ...
阅读全文