时间:2010-07-23 20:58:38

标签: vb.net

3 个答案:

答案 0 :(得分:3)

答案 1 :(得分:0)

答案 2 :(得分:0)

实际上我不知道当蛇吃东西时如何添加立方体

尝试使用System.drawing.graphics绘制立方体(蛇的一部分):容易一些

如果要移动蛇,则应基于以下内容编写脚本:

记住:这仅是要执行代码的地方:

Dim CubeSelected as integer = 1 ' Selected cube

loop {

 if right_key_pressed{

 ' You have to make this command : cube(number of the cube , direction)

cube(CubeSelected,right) ' Change the selected cube direction 

MoveSelect = MoveSelect + 1 ' Select the next cube
Threading.Thread.Sleep(500) ' Wait 
   }

}

如果按右键,则多维数据集将改变时间的方向。 所以蛇会弯曲并朝正确的方向前进

实际上有点复杂,但是我希望它能帮忙