-
Notifications
You must be signed in to change notification settings - Fork 8
BASIC Stringlist Statements
TYPE: plusBASIC string statement
FORMAT: DEF ATTRLIST var$ = attribute_list
Action: Creates a string list of tile attributes.
- var$ is a simple string variable which will contain the list.
- attribute_list is a comma-separated list of tile or spritle attributes.
- Each attribute can be a numeric or (as of v0.23v) string expression.
- The value of a numeric attribute value can be calculated by adding the following values for each desired property:
-
2
= Horizontal Flip -
4
- Vertical Flip -
8
- Double Height (sprite only) -
64
- Priority
-
- A string attribute may contain one or more of the following letters, either upper or lowercase:
-
H
- Horizontal Flip -
V
- Vertical Flip -
D
- Double Height (sprite only) -
P
- Priority
-
-
- Illegal Quantity error results if a numeric attribute is greater than 256 or string attribute contains any character other than the ones listed.
- The value of a numeric attribute value can be calculated by adding the following values for each desired property:
- Each attribute can be a numeric or (as of v0.23v) string expression.
Examples
DEF ATTRLIST A$ = 64, 68, 66 `
Creates an attribute list of
- priority
- priority and vertical flip
- priority and horizontal flip
DEF ATTRLIST A$ = "PH", "PV", "PD",
Creates an attribute list of
- priority and horizontal flip
- priority and vertical flip
- priority and double height
TYPE: plusBASIC string statement
FORMAT: DEF BYTELIST var$ = byte_list
Action: Creates a string list of 8-bit numbers.
- Each number will be stored as one characters, making the resulting string length the same as that of the list.
- Illegal Quantity error results if number is not in the range -256 through 255.
- Numbers less than 0 are treated as twos-complement, resulting in binary value of 256 + number.
TYPE: plusBASIC string statement
FORMAT: DEF INTLIST var$ = integer_list
Action: Creates a string list of 16-bit numbers.
- Each number will be stored as two characters, making the resulting string length twice that of the list.
- Illegal Quantity error results if number is not in the range -65535 through 65535.
- Numbers less than 0 are treated as twos-complement, resulting in binary value of 65536 + number.
TYPE: plusBASIC graphics statement
FORMAT: DEF PALETTELIST var$ = palette_list
Action: Creates a color palette list.
- var$ is a simple string variable which will contain the list.
- palette_list is a comma-separated list of palette numbers.
-
Illegal Quantity error results if the palette number is not in the range
0
through3
.
-
Illegal Quantity error results if the palette number is not in the range
Example
DEF PALETTELIST C$ = 2,2,3 `
Creates a color palette list consisting of palette numbers 2, 2, and 3.
TYPE: plusBASIC string statement
FORMAT: DEF TILELIST var$ = tile_list
Action: Creates a color index list.
- var$ is a string variable or string array element.
- tile_list is a comma-separated list of tile indexes in the range 0 through 511.
Example
DEF TILELIST A$ = 13, 13, 14
Creates a tile list consisting of tile indexes 13, 13, and 14.
To Search for pages in the wiki, press Pages above and type a search term in the "Find a page..." box. Results will update beneath automatically.
- Aquarius+ User Guide
- Quick Start
- Hardware
- Software
-
Other Development Resources