Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
24
Task/Draw-a-pixel/Robotic/draw-a-pixel.robotic
Normal file
24
Task/Draw-a-pixel/Robotic/draw-a-pixel.robotic
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
. "Set the sprite's reference character located at the"
|
||||
. "upper-left corner of the board (char 0)"
|
||||
set "SPR0_REFX" to 0
|
||||
set "SPR0_REFY" to 0
|
||||
|
||||
. "Offset that reference by 256, leading to the first character"
|
||||
. "in the extended character set"
|
||||
set "SPR0_OFFSET" to 256
|
||||
|
||||
. "Set the width and height of the sprite"
|
||||
set "SPR0_WIDTH" to 1
|
||||
set "SPR0_HEIGHT" to 1
|
||||
|
||||
. "Unbound the sprite, removing the grid restriction"
|
||||
set "SPR0_UNBOUND" to 1
|
||||
|
||||
. "Mark the sprite for display on the overlay (this may not be necessary)"
|
||||
set "SPR0_OVERLAY" to 1
|
||||
|
||||
set "xPos" to 100
|
||||
set "yPos" to 100
|
||||
|
||||
. "Display the sprite at the given location"
|
||||
put c0c Sprite p00 at "('xPos')" "('yPos')"
|
||||
Loading…
Add table
Add a link
Reference in a new issue