Jump to content

Imgcut files

From Battle Cats Game Modding Wiki

An imgcut file is a file inside of ImageDataLocal or ImageDataServer which stores a set of regions / rectangles on a spritesheet for a texture.

Structure

The file starts with the text [imgcut] as a way to identify that this is an imgcut file, although it is unused by the game.

On the next line it specifies the version of the imgcut format used, which is always 0 and is also unused by the game.

The next line is the filename of the spritesheet, which again is also unused.

On the next line it specifies the total number of regions in this texture.

Each subsequent line defines the data for the region. Each column in the region has the following structure:

  1. X Position
  2. Y Position
  3. Width
  4. Height
  5. Comment (optional)

Examples

[imgcut]
0
super_cool_img_en.png
4
1,1,500,120,shadow
502,1,500,120,fire
1,121,300,20
123,142,50,50,bullet