Template definition number: 0 to 8191
The coordinates on the graphic page of the referenced image
Sprite size
・If not specified, both W and H are 16.
Sprite coordinate reference point
・If not specified, X and Y are 0.
b00 | ↑ Rotation by 90 degrees (specified by 2 bits of b00 and b01) |
b01 | ↓ #A_ROT0, #A_ROT90, #A_ROT0180, #A_ROT270 |
b02 | Horizontal Reverse (0=OFF, 1=ON), #A_REVH |
b03 | Vertical Reverse (0=OFF, 1=ON), #A_REVV |
b04 | Additive Composite (0=OFF, 1=ON), #A_ADD |
・0, if not specified.
SPDEF 0,192,352,32,32,16,16,1
Numeric array that stores sprite template data
・There are seven elements: U, V, W, H, origin X, origin Y, and attribute.
・The number of elements must be a multiple of 7.
・"A number of elements divided by 7" sprite templates will be defined in order from 0.
Specify the definition start number: 0 to 8191
It is added for the definition position adjustment of the image (each 0 to 4095)
SPDEF SRCDATA SPDEF SRCDATA 256,0,256
DATA command label enumerating sprite template data
・@Label name must be enclosed in "" or specified with a string variable.
・The top data is the number of sprites to be defined, and then enumerate the data of each sprite (7 data per piece)
・The one data includes 7 items which are U, V, W, H, origin X, origin Y, and attribute.
Specify the definition start number: 0 to 8191
It is added for the definition position adjustment of the image (each 0 to 4095)
SPDEF "@SRCDATA" SPDEF "@SRCDATA",256,0,256
Template definition number: 0 to 8191
The coordinates on the graphic page of the referenced image
Sprite definition image size
Reference point coordinates of sprite definition
Sprite definition attributes
SPDEF 2 OUT U,V,ATR
・Elements that do not need to be copied can be omitted (separator ',' comma is required).
・The argument part is used for adjustment after copying.
Template definition number: 0 to 8191
Definition number that becomes the copy source: 0 to 8191
The coordinates on the graphic page of the referenced image
The size of the sprite to define
・If not specified, both W and H are 16.
Sprite coordinate reference point
・If not specified, X and Y are 0.
b00 | ↑ Rotation by 90 degrees (specified by 2 bits of b00 and b01) |
b01 | ↓ #A_ROT0, #A_ROT90, #A_ROT0180, #A_ROT270 |
b02 | Horizontal Reverse (0=OFF, 1=ON), #A_REVH |
b03 | Vertical Reverse (0=OFF, 1=ON), #A_REVV |
b04 | Additive Composite (0=OFF, 1=ON), #A_ADD |
・0, if not specified.
SPDEF 0,255,192,352,32,32,16,16,1 SPDEF 1,255,,,32,32,,,
SPDEF