Get the croc into the engine
This commit is contained in:
@ -25,7 +25,7 @@ sys_spritesheet {{spritesheet_name}} = {
|
||||
|
||||
def main(spritesheet_name, n_sprites, key_color, fname_png, fname_c):
|
||||
sprites, width, height = load_sprites(fname_png, key_color)
|
||||
assert(len(sprites) == n_sprites), f"must be exactly {n_sprites} sprites"
|
||||
assert(len(sprites) == n_sprites), f"must be exactly {n_sprites} sprites, not {len(sprites)}"
|
||||
|
||||
with open(fname_c, "wt") as output:
|
||||
output.write(
|
||||
|
Reference in New Issue
Block a user