diff --git a/art/gen/water0.png b/art/gen/water0.png new file mode 100644 index 0000000..9193c20 Binary files /dev/null and b/art/gen/water0.png differ diff --git a/art/gen/water1.png b/art/gen/water1.png new file mode 100644 index 0000000..10be34e Binary files /dev/null and b/art/gen/water1.png differ diff --git a/art/gen/water2.png b/art/gen/water2.png new file mode 100644 index 0000000..c02bb06 Binary files /dev/null and b/art/gen/water2.png differ diff --git a/code/foundation/src/gen/texgen_fallback.c b/code/foundation/src/gen/texgen_fallback.c index a13b47c..2f6c84b 100644 --- a/code/foundation/src/gen/texgen_fallback.c +++ b/code/foundation/src/gen/texgen_fallback.c @@ -7,9 +7,7 @@ Texture2D texgen_build_anim_fallback(asset_id id, int64_t counter) { (void)counter; switch (id) { case ASSET_WATER: { - Image img = LoadImageEco("water"); - ImageColorBrightness(&img, zpl_abs((counter % 64 - 32)*2)); - return Image2TexEco(img); + return LoadTexEco(zpl_bprintf("%s%d", "water", counter%3)); }break; default: return GenColorEco(PINK); break; diff --git a/code/foundation/src/models/assets.c b/code/foundation/src/models/assets.c index aeff721..a5edd04 100644 --- a/code/foundation/src/models/assets.c +++ b/code/foundation/src/models/assets.c @@ -18,7 +18,7 @@ typedef struct { #include "lists/assets_list.c" -#define ASSET_FRAME_RENDER_MS (1.0/5.0) +#define ASSET_FRAME_RENDER_MS (1.0/1.0) #define ASSET_FRAME_SKIP 4 static int64_t assets_frame_counter = 1; static double assets_frame_next_draw = 0.0; diff --git a/code/games/sandbox/src/worldgen.c b/code/games/sandbox/src/worldgen.c index 6163a8f..c81d680 100644 --- a/code/games/sandbox/src/worldgen.c +++ b/code/games/sandbox/src/worldgen.c @@ -60,7 +60,7 @@ int32_t worldgen_build(world_data *wld) { // water #if 1 for (int i=0; idata, watr_id, RAND_RANGE(0, world->dim), RAND_RANGE(0, world->dim), 4+RAND_RANGE(0,3), 4+RAND_RANGE(0,3), 0.5f, 0.5f, shaper_noise80); + world_fill_rect_anchor(world->outer_data, watr_id, RAND_RANGE(0, world->dim), RAND_RANGE(0, world->dim), 4+RAND_RANGE(0,3), 4+RAND_RANGE(0,3), 0.5f, 0.5f, shaper_noise80); } #endif