So I've been working on a game and I'd like to add enemies. From what I understand, to "get rid of a sprite", you just set it's y position to #$FE. And I'm assuming I'd load a screen's respective sprites in a similar fashion to loading the screen itself:
An address table of the byte tables of sprite oam for each room. Maybe a byte table for the number of enemies on each screen. The sprites for a given room are indirectly loaded to OAM until the number for how many sprites to load is reached. Right?
But I guess I'm a little confused on how metasprites are "destroyed". Say the player shoots the 4th sprite of a 4-sprite metasprite. How should I go about telling the program "Okay, get rid of these 3 other sprites too"?
Also how would I tell the game which sprites do what? Like B Enemy should do C, D Enemy should do E. When you touch powerup F it shouldn't take away health, but disappear, and some variable be set to 1?
An address table of the byte tables of sprite oam for each room. Maybe a byte table for the number of enemies on each screen. The sprites for a given room are indirectly loaded to OAM until the number for how many sprites to load is reached. Right?
But I guess I'm a little confused on how metasprites are "destroyed". Say the player shoots the 4th sprite of a 4-sprite metasprite. How should I go about telling the program "Okay, get rid of these 3 other sprites too"?
Also how would I tell the game which sprites do what? Like B Enemy should do C, D Enemy should do E. When you touch powerup F it shouldn't take away health, but disappear, and some variable be set to 1?