Skip to content

CommanderFoo/sprite-atlas-tool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sprite Atlas Tool

https://commanderfoo.github.io/sprite-atlas-tool/

A browser based sprite packing utility designed for game developers. This tool allows you to pack multiple individual images into a single optimized texture atlas and generates the necessary data for integration into various game engines.

preview

Features

  • Multiple Packing Algorithms: MaxRects, Shelf, Guillotine, Skyline, and Grid.
  • Advanced Heuristics: Short Side, Long Side, Area, and Bottom-Left rules for MaxRects.
  • Auto-Size & Auto-Trim: Support for Power of Two (PoT) and Tight trimming to minimize texture waste.
  • Advanced Sorting: Organize assets by Width, Height, Max Side, or Aspect Ratio.
  • Export Formats: Support for PNG, WebP, and JPEG images.
  • Data Formats: JSON, Unity, and TexturePacker compatible exports.
  • Visual Debugging: Toggleable overlays for sprite bounds, padding, and rotation indicators.
  • User-Friendly UI: Dark theme, drag-and-drop support, real-time packing updates, and an interactive pan/zoom canvas.

Keyboard Shortcuts

  • Ctrl + E: Export Atlas
  • Ctrl + Z: Undo
  • Ctrl + Y: Redo
  • F: Fit Atlas to View
  • G: Toggle Grid
    • / -: Zoom In / Out
  • 0: Reset Zoom to 100%
  • Delete: Remove Selected Assets
  • Middle Mouse: Pan View

Performance Tips

  • The MaxRects algorithm generally provides the highest packing density for varied sprite sizes.
  • Use "Auto-Trim Atlas" if your game engine supports non-fixed texture sizes to save memory.
  • Enable "Allow Rotation" to allow the packer to orient sprites for better fitment.

License

MIT License - See LICENSE file for details.

About

A browser based sprite packing utility designed for game developers.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published