[A83] Re: nibbles / snake
[Prev][Next][Index][Thread]
[A83] Re: nibbles / snake
Just got another idea: divide the screen in all 4x4 sprites, that would be
24x16, then use a 24x16 byte memory area to save everything on the screen,
you can say 00-0F are different wall textures, 10-1F are the snake textures
etc etc and use 4 bytes more for the coords of the tail and the head. When
you want to check if the head is moving to a special place (wall, apple,
himself) just look up in the 16*24 screen memory area with that coord and
check if it's a special 4x4 block. Also the graphics routine would be very
simple then, just read a block and write it to the screen (idea: you could
save the 16*24 memory block from up to down, not from left to right, then u
can acces the LCD port in the fastest way).
Bye,
Cheiz
Follow-Ups:
References: