Re: Collision Prevention
Posted: Sun Jul 26, 2020 6:02 pm
I'm trying to scroll right and update the other nametable like this
https://nesdoug.com/2018/09/05/12-scrolling-right/
https://github.com/nesdoug/15_Scroll_R/ ... scroll_r.c
I don't get what the python script does? Can I just use nes screen tool and skip it for now?
And would appreciate some comments on the lines that I didn't comment myself
https://nesdoug.com/2018/09/05/12-scrolling-right/
https://github.com/nesdoug/15_Scroll_R/ ... scroll_r.c
I don't get what the python script does? Can I just use nes screen tool and skip it for now?
And would appreciate some comments on the lines that I didn't comment myself
Code: Select all
void draw_screen_R(void){
// scrolling to the right, draw metatiles as we go
pseudo_scroll_x = scroll_x + 0x120; //offscreen
temp1 = pseudo_scroll_x >> 8; //get anything above 255??
set_data_pointer(Rooms[temp1]); // for the metatile system, pass it the addresses of the room data
nt = temp1 & 1; //what nametable to write to?
x = pseudo_scroll_x & 0xff; //??