pub const MAX_FRAMES: usize = 256;
The most frames one animation may have; a longer list is an error in a file.