js实现简单的围棋
代码语言:html
所属分类:游戏
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>BFW NEW PAGE</title>
<script src="http://repo.bfw.wiki/bfwrepo/js/easeljs-0.7.1.min.js"></script>
<script>
function Circle() {
createjs.Shape.call(this);
this.setCircleType = function(type) {
this._circleType = type;
switch (type) {
case Circle.TYPE_UNSELECTED:
this.setColor("#cccccc");
break;
case Circle.TYPE_SELECTED:
this.setColor("#ff6600");
break;
case Circle.TYPE_CAT:
this.setColor("#0000ff");
break;
}
}
this.setColor = function (colorString) {
.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0