Re: A86: Question on tile maps


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

Re: A86: Question on tile maps




what kind of a program are you writing?  I see that you are using a map, so I
am assuming you are writing a game.  since no one else would help me, I'll ask
you.  How would I make a map(for a game like Chips Challenge{tiles also})
print it to the screen and move a sprite over top of it?  I also need to know
how to check for collisions with other spites.  ANY help on ANY of these
questions would be appreciated SO much.  :-)

Thank you,
BlAsTo1414


> i have a question for tile maps.  suppose i have the following map:
>  Map1:
>  .db $1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1
>  .db $1,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$1
>  .db $1,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$1
>  .db $1,$0,$0,$0,$0,$0,$2,$2,$2,$0,$0,$0,$0,$0,$0,$1
>  .db $1,$0,$0,$0,$0,$0,$2,$2,$2,$0,$0,$0,$0,$0,$0,$1
>  .db $1,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$1
>  .db $1,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$1
>  .db $1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1
>  
>  if i do  the following:
>  ld hl,Map1
>  inc hl
>  
>  would hl contain the first element of the map? or when i load hl with the 
> map, does it already point to the first element?  Also, <add hl,de> would 
> move to the next row right? (de has 16 in it).
>  
>  thanks
>  akshay
>