Post by philip on Apr 21, 2011 14:47:41 GMT -5
Hello at all
Scroll problem (Saccadic scrolling) with DrawTiles
area scroll A: 1536*512 ;D
scroll A:
scroll B:
source code:
www.mirari.fr/TYXC
scroll A subroutine(convert asm subroutine?)
Thanks,
philippe
Scroll problem (Saccadic scrolling) with DrawTiles
area scroll A: 1536*512 ;D
scroll A:
scroll B:
source code:
www.mirari.fr/TYXC
scroll A subroutine(convert asm subroutine?)
declare sub rendera(x1 as integer, x2 as integer, y1 as integer, y2 as integer)
For Y=y1 to y2
For X=x1 to x2
if sca(X,Y)=0 then
drawtiles tile_mapa,672+sca(X,Y)+palette(1),X*4,Y*2,4,2
endif
if sca(X,Y)=1 then
drawtiles tile_mapa,575+sca(X,Y)+palette(1),X*4,Y*2,4,2 ' 576-1 = 575
endif
if sca(X,Y)=2 then
drawtiles tile_mapa,582+sca(X,Y)+palette(1),X*4,Y*2,4,2
endif
if sca(X,Y)=3 then
drawtiles tile_mapa,589+sca(X,Y)+palette(1),X*4,Y*2,4,2
endif
if sca(X,Y)=4 then
drawtiles tile_mapa,596+sca(X,Y)+palette(1),X*4,Y*2,4,2
endif
if sca(X,Y)=5 then
drawtiles tile_mapa,603+sca(X,Y)+palette(1),X*4,Y*2,4,2
endif
if sca(X,Y)=6 then
drawtiles tile_mapa,610+sca(X,Y)+palette(1),X*4,Y*2,4,2
endif
if sca(X,Y)=7 then
drawtiles tile_mapa,617+sca(X,Y)+palette(1),X*4,Y*2,4,2
endif
if sca(X,Y)=8 then
drawtiles tile_mapa,624+sca(X,Y)+palette(1),X*4,Y*2,4,2
endif
if sca(X,Y)=9 then
drawtiles tile_mapa,631+sca(X,Y)+palette(1),X*4,Y*2,4,2
endif
if sca(X,Y)=10 then
drawtiles tile_mapa,638+sca(X,Y)+palette(1),X*4,Y*2,4,2
endif
if sca(X,Y)=11 then
drawtiles tile_mapa,645+sca(X,Y)+palette(1),X*4,Y*2,4,2 ' 656-11 = 645
endif
if sca(X,Y)=12 then
drawtiles tile_mapa,652+sca(X,Y)+palette(1),X*4,Y*2,4,2 ' 664-12 = 652
endif
Next X
Next Y
exit sub
end sub
' SCROLL A: 8 tiles (chacune d'une taille de 8*8)
tile_mapa:
data 0, 1, 2, 3
data 4, 5, 6, 7
Thanks,
philippe