【发布时间】:2016-11-22 00:30:07
【问题描述】:
我们正在使用 Easejs 制作一个小型 Snake 浏览器游戏。
现在我们想为蛇的部分使用 PNG,而不仅仅是颜色:
this.shape.graphics.beginFill("#e54d42");
this.shape.graphics.drawRect(this.x*this.grid.cell_width, this.y*this.grid.cell_height, this.grid.cell_width, this.grid.cell_height);
this.shape.graphics.endFill();
有人知道怎么做吗?我们应该使用 beginBitmapFill 还是我们必须怎么做?
【问题讨论】:
标签: javascript createjs easeljs