|Abbreviation:||s, p, r, SHIFT+D|
|Token code:||(254 29) / $fe $1d|
in BASIC ROM:
|List of all BASIC keywords|
Type: Command General Programming-Syntax: SPRDEF
The command SPRDEF activates the integrated sprite editor of the C128. The command may be called both in direct mode and within a program. Superfluous parameters lead to the error message after exiting the editor. . Besides editing sprites, the editor could also be used to edit characters or as a kind of zoom mode for a graphics program. However, it should be noted that any existing graphics will be destroyed by the editor.
The Editor[edit | edit source]
Below the workspace of 24×21 fields (corresponding to the 24×21 pixels of a sprite), the question is displayed for the user to select one of the eight possible sprites.
Sprite Selection[edit | edit source]
|to||Selects the corresponding sprite and starts the working mode.|
|Ends the editor session and returns to the calling environment.|
In the normal sprite mode the cursor is +.
In the multicolor sprite mode the cursor is ++.
Keys in Working Mode[edit | edit source]
|+||Save the designed sprite and return to the sprite selection.|
|Discard changes and return to sprite selection.|
|keys (up, down, left, right)||Move the cursor in the workspace.|
|Place cursor at the beginning of the next line (except for the last line, where it is positioned only at the 1st column).|
|Place the cursor in the upper left corner of the workspace.|
|+||Clear the sprite grid and position the cursor in the upper left corner.|
|Set point in foreground color.|
|Set point in additional color 1 (for multicolor sprite).|
|Set point in additional color 2 (for multicolor sprite).|
|Enable/disable automatic cursor movement (to the right) for pixel change keysto .|
|Copy pattern from other sprite.to select the sprite, cancels the action.|
|+ to +||Select one of the foreground colors from 1 to 8 (for color numbers see COLOR.|
|+ to +||Select one of the foreground colors from 9 to 16.|
|Turn double width sprite on/off.|
|Enable/disable double height of the sprite.|
|Turn multicolor mode on/off.|
- Important tips
- The sprite multicolour colours cannot be changed in the editor, but must be set beforehand with the command SPRCOLOR.
- The editor does not offer the possibility to save the designs to diskette or to load them from there. This can do with this commands:
Examples[edit | edit source]
First calls the internal sprite editor with SPRDEF and then saves the sprites under the name entered with INPUT.