・A sprite can be used by SPSET.
・All attributes such as rotation is initialized by executing SPSET.
・The sprite variables are cleared.
・When using SPHIT collision detection, call SPCOL after SPSET.
Sprite number to create: 0 to 4095
Definition number of template defined by SPDEF: 0 to 8191
Specify whether to display the created sprite
・Display with 1 and do not display with 0.
・1, if not specified.
SPSET 1,500
・Used when setting independently without using SPDEF value.
Sprite number to create: 0 to 4095
The coordinates on the graphic page of the referenced image
Sprite size: 0 to 2048
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.
Specify whether to display the created sprite
・Display with 1 and do not display with 0.
・1, if not specified.
SPSET 54,0,0,32,32,1,0
・Search for space in the entire sprite.
Definition number of the template defined by SPDEF: 0 to 8191
Specify whether to display the created sprite
・Display with 1 and do not display with 0.
・1, if not specified.
Generated sprite number: 0 to 4095
・When there is no space and cannot be generated, -1 is returned.
IX=SPSET(500)
・Search for space in the entire sprite.
The coordinates on the graphic page of the referenced image
Sprite size: 0 to 2048
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 |
Specify whether to display the created sprite
・Display with 1 and do not display with 0.
・1, if not specified.
Generated sprite number: 0 to 4095
・When there is no space and cannot be generated, -1 is returned.
IX=SPSET(0,0,32,32,1)
・Search for available space within the specified range.
Search range (0 to 4095)
・If the starting number is increased, the available numbers are searched in descending order.
Definition number of template defined by SPDEF: 0 to 8191
Specify whether to display the created sprite
・Display with 1 and do not display with 0.
・1, if not specified.
Generated sprite number: 0 to 4095
・When there is no space and cannot be generated, -1 is returned.
IX=SPSET(100,120, 500)
・ Search for available space within the specified range.
Search range (0 to 4095)
・If the starting number is increased, the available numbers are searched in descending order.
The coordinates on the graphic page of the referenced image
Sprite size: 0 to 2048
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 |
Specify whether to display the created sprite
・Display with 1 and do not display with 0.
・1, if not specified.
Generated sprite number: 0 to 4095
・When there is no space and cannot be generated, -1 is returned.
IX=SPSET(100,120, 0,0,32,32,1)