A83: Tile Map Question


[Prev][Next][Index][Thread]

A83: Tile Map Question




i need help with an asm pgrm. i have a big map in
tilemap,and the info in tileinfo
tileinfo:
    .db 16,11 ;size of map
    .db 2,2 ; where player starts
tilemap:
    .db 1,2,3,4,5,6,7,8,9,2,3,6,3,6,3,6
    .db 1,2,3,4,5,6,7,8,9,2,3,6,3,6,3,6
    .db 1,2,3,4,5,6,7,8,9,2,3,6,3,6,3,6
    .db 1,2,3,4,5,6,7,8,9,2,3,6,3,6,3,6
    .db 1,2,3,4,5,6,7,8,9,2,3,6,3,6,3,6
    .db 1,2,3,4,5,6,7,8,9,2,3,6,3,6,3,6
    .db 1,2,3,4,5,6,7,8,9,2,3,6,3,6,3,6
    .db 1,2,3,4,5,6,7,8,9,2,3,6,3,6,3,6
    .db 1,2,3,4,5,6,7,8,9,2,3,6,3,6,3,6
    .db 1,2,3,4,5,6,7,8,9,2,3,6,3,6,3,6
    .db 1,2,3,4,5,6,7,8,9,2,3,6,3,6,3,6

and its bigger than 8*12.
a one means display sprite 1 at "sprite1:" and two,
"sprite2:", etc, etc.
i want to display a player at the start coords, and
him be centerd on the screen (x=8,y=4 in 8*12) and
press up, down, left ,right to move him IF the tile
number is above , les say 3. if a tile is not on the
map, (like if youre at 2,2 and a;lmost evrything above
and to the right) i want it to display a certain
sprite (blanksprite:) . i cant seem to get this to
work. if you can help me im sure i'll gve you credit
in my prgm!

thnaks in advance, 


=====
--Ranfinity, " the future is yours.."

__________________________________________________
Do You Yahoo!?
Send instant messages & get email alerts with Yahoo! Messenger.
http://im.yahoo.com/