Bit of a technical question this but worth a shot...
I've finished Patater's tutorial and realised I know enough to build something simple, like a small game of pong. But I've got myself a bit stuck trying to figure out how to get the ball to move across both screens.
libnds uses a separate space in memory for sprites for each screen. So one solution would be to create the sprite twice, once in each memory bank, and toggle the visibility depending on which screen the sprite is on. But this strikes me as somewhat inefficient, with a single sprite taking up double the amount of memory it would theoretically need.
Is this the correct way to do it, or is there a better solution than creating everything twice? I know I could just build it that way and forget about it but part of me just won't let the feeling that I'm missing something go...
I've finished Patater's tutorial and realised I know enough to build something simple, like a small game of pong. But I've got myself a bit stuck trying to figure out how to get the ball to move across both screens.
libnds uses a separate space in memory for sprites for each screen. So one solution would be to create the sprite twice, once in each memory bank, and toggle the visibility depending on which screen the sprite is on. But this strikes me as somewhat inefficient, with a single sprite taking up double the amount of memory it would theoretically need.
Is this the correct way to do it, or is there a better solution than creating everything twice? I know I could just build it that way and forget about it but part of me just won't let the feeling that I'm missing something go...