文件名称:texture-atlas-js:简单纹理图集生成器类
文件大小:2KB
文件格式:ZIP
更新时间:2024-07-23 06:22:27
javascript tool game-development texture-atlas-builder texture-atlas-js
纹理图集-js 简单纹理图集生成器类 指示 1.) 创建新的 TextureAtlasBuilder: (ex.) var builder = new TextureAtlasBuilder(1024,1024,64) In this example, I created a new texture that is 1024 pixels x 1024 pixels, made of cells that are 64 pixels by 64 pixels 2.) 加载图片:(例如)builder.loadImage('my_image_url.png', 1, 1, 1, 1); In this example, I loaded an image at the location of cell [1, 1] (64px, 64px), with a size of
【文件预览】:
texture-atlas-js-master
----.gitattributes(483B)
----atlas.js(2KB)
----README.md(931B)