技术文档与引擎导入规范

开发文档与游戏引擎导出规范

全面了解 MkSprite 的像素网格标准、二值透明通道清理、16 格自动瓦片、九宫格 UI 边距、PSD 图层、WAV 音频及 Unity/Godot/Phaser/Tiled 导入指南。

为独立游戏开发者提供从像素素材规格到主流 2D 引擎无损导入的完整技术手册。

Asset Format Specifications

Pixel Art & Layered PSD v1

RGBA8 · Max 256×256 · Up to 8 normal raster layers · Raw/PackBits

Pixel Art Editor exports genuine layered Photoshop .psd files preserving per-layer visibility and opacity alongside flattened transparent PNGs.

Launch tool

16-Tile Corner Autotile Standard

16/32/48 px tiles · 4×4 PNG atlas · Automated seam QA

Every terrain edge is verified for exact pixel continuity across all compatible neighbor masks before exporting Tiled JSON.

Launch tool

9-Slice UI & VFX Atlases

nine-slice.json · phaser-atlas.json · Centered VFX anchors

UI panels lock corner pixels for arbitrary scaling while VFX sequences guarantee transparent alpha bounds per cell.

Launch tool

Uncompressed 16-Bit PCM WAV Audio

22,050 Hz · Mono · Zero-crossing endpoints · Loop metadata JSON

Both Game SFX and Chiptune Loops enforce zero-amplitude endpoints to eliminate audio clicks and support seamless sample-exact looping.

Launch tool

Game Engine Import Reference

View Step-by-Step Tutorials
Unity 6 / 2D Sprite

Unity 6 / 2D Sprite

PNG + slice-config.json / 9-Slice
  • Set Filter Mode to Point (no filter) and Compression to None for crisp pixels.
  • Use Pixel Art Fixer binary alpha cleanup to prevent dark bilinear halo edges.
  • Copy nine-slice.json left/right/top/bottom borders directly into Sprite Editor.
Godot 4

Godot 4

PNG + Tiled TMJ + NinePatchRect
  • Set CanvasItem Texture Filter to Nearest in Project Settings → Rendering.
  • Import terrain.png (4×4 corner mask atlas) and props.png into TileSet Atlas sources.
  • Apply nine-slice.json border pixels directly to NinePatchRect Patch Margin.
Phaser 3

Phaser 3

phaser-atlas.json + map.tmj + WAV
  • Enable pixelArt: true in Phaser.Game config to lock nearest-neighbor WebGL sampling.
  • Load Pixel VFX sheets directly with this.load.atlas("vfx", "vfx.png", "phaser-atlas.json").
  • Load Tile Map Editor bundles via this.load.tilemapTiledJSON("map", "map.tmj").
Tiled Map Editor

Tiled Map Editor

map.tmj + terrain.png + props.png
  • Keep map.tmj, terrain.png, and props.png in the same folder when opening in Tiled.
  • Collision rectangles are stored in the dedicated Collision Object Layer.
  • Custom 4×4 terrain atlases follow NW=1, NE=2, SE=4, SW=8 mask order (0–15).