diff --git a/src/2d_sprites.zig b/src/2d_sprites.zig index 5438641..56f3a5e 100644 --- a/src/2d_sprites.zig +++ b/src/2d_sprites.zig @@ -730,6 +730,8 @@ fn initVertSpriteTuple() VertSpriteTuple { } fn loadSprite(comptime kind: usize, comptime i: usize, sprite: *OAM.Attribute) void { + GBA.memset32(GBA.SPRITE_VRAM, 0, 0x8000); // Clear Sprite VRAM + sprites[kind][i].load(); sprite.setSize(sprites[kind][i].size()); }