摘要: 这个贪吃蛇的思路来源于网上的一位后台程序员的作品。所以作为一个思想剽窃者我也分享我的代码。首先建两个对象snake和组成snake的node对象:function Snake(){ this.direction = "down"; this.operate = []; this.head = null; this.end = null; this.status = "live"; this.speed=500; }function Node(rowNum,colNum){ //当前节点所必须... 阅读全文
posted @ 2012-04-15 00:06 Jmarry 阅读(589) 评论(9) 推荐(2) 编辑