I create this new post in order to keep clean djcouchycouch topic.
I have 3 files :
-palette (it's ok)
-tiles (loading in vram ok thanks to Chilly Willy)
-mapping
The problem is, i have thins kind of asm file:
Code: Select all
.globl level1_backg
level1_backg:
; line 0
dc.w 0x1
dc.w 0x2
dc.w 0x3
...
; line 0
dc.w 0x4
dc.w 0x5
dc.w 0x6
i tried this to know what tile draw
Code: Select all
if ((level1_backg[i*j])==0) {address=13728;}
...
Code: Select all
VDP_fillTileMapRectInc(APLAN, TILE_ATTR(2,0,0,0)+(address/32), k, l, 8/8, 8/8);
For sure level1_backg[i*j])==0 isn't the good way to retrive the info on tilemap but i don't know how to do this correctly.
Someone to help me?