public static Texture generateCharacter() {
pixmap = new Pixmap(4, 4, Format.RGB565);
//fill square
pixmap.setColor(0.5f, 0.5f, 0.5f, 1);
pixmap.fill();
//draw face/eyes (front of character)
pixmap.setColor(0, 1, 1, 1);
pixmap.drawPixel(3, 2);
pixmap.drawPixel(3, 1);
Texture t = new Texture(pixmap);
pixmap.dispose();
return t;
}
TextureFactory.java 文件源码
java
阅读 20
收藏 0
点赞 0
评论 0
项目:SpaceProject
作者:
评论列表
文章目录