I have a 64x64 8bit sprite that I can a small plot-demo with key "A".
The sprite address for the 32kb is:
$1:3000-$1:AFFF Sprite Image Data (up to $1000 per sprite at 64x64 8-bit)
The sprite could be used as a painting surface with 64x64 pixels.
The address for my first 64x64 sprite is $1:3100
Who can create a command for "line , rectangle and circle" for a 64x64 sprite with color.
greeting
Code: Select all
screen 128
Dim Sprites(3)
Sprites(1) = ADDSPRITE("sprleer64.raw",64,64,8,0)
x=0
y=0
f=0
x1=-1
y1=-1
ShowSprite 1,100,100,3
StartEdit:
Loop:
Key$=GET
if Key$="Q" then GOSUB links
if Key$="E" then GOSUB rechts
if Key$="W" then GOSUB oben
if Key$="S" then GOSUB unten
if Key$="A" then
x1=x1+1
y1=y1+1
f=4
spritep(x1,y1,f)
end if
Goto loop
end
links:
x=-1
y=0
MoveSprite Sprites(1),x,y
return
rechts:
x=1
y=0
MoveSprite Sprites(1),x,y
return
oben:
y=-1
x=0
MoveSprite Sprites(1),x,y
return
unten:
y=1
x=0
MoveSprite Sprites(1),x,y
return
sub spritep(xp,yp,f)
xy=yp*64+xp
VPOKE 1,$3100+xy,f
end sub
gruss