From 35deec52ae93b0c91f713e7ea2212b099bae3e11 Mon Sep 17 00:00:00 2001 From: John Alanbrook Date: Wed, 19 Jun 2024 11:45:34 -0500 Subject: [PATCH] image generation --- scripts/components.js | 3 ++- source/engine/texture.c | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/components.js b/scripts/components.js index c2ff043..dce5926 100644 --- a/scripts/components.js +++ b/scripts/components.js @@ -61,7 +61,8 @@ var sprite = { this._p = p; this.del_anim?.(); this.texture = game.texture(p); - this.diffuse = this.texture; + + this.diffuse = this.texture; this.rect = [0,0,1,1]; var anim = SpriteAnim.make(p); diff --git a/source/engine/texture.c b/source/engine/texture.c index a36f870..c992369 100644 --- a/source/engine/texture.c +++ b/source/engine/texture.c @@ -284,7 +284,6 @@ double grad (int hash, double x, double y, double z) void texture_save(texture *tex, const char *file) { char *ext = strrchr(file, '.'); - printf("SAVING TO %s with ext %s\n", file, ext); if (!strcmp(ext, ".png")) stbi_write_png(file, tex->width, tex->height, 4, tex->data, 4*tex->width); else if (!strcmp(ext, ".bmp"))