From d8147792a9d9dbf52d2e816ac4593ccf8532fd70 Mon Sep 17 00:00:00 2001 From: hgn Date: Mon, 10 Jan 2022 18:04:06 +0000 Subject: [PATCH] cleaned up world edges (revision) --- fishladder.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fishladder.c b/fishladder.c index a568516..0147e5c 100644 --- a/fishladder.c +++ b/fishladder.c @@ -917,6 +917,7 @@ static int map_load( const char *str, const char *name ) { u8 *px = &info_buffer[((x*64)+y)*4]; + // Fade out edges of world so that there isnt an obvious line int dist_x = 16 - VG_MIN( VG_MIN( x, 16 ), 16-VG_MAX( x-16-world.w, 0 ) ); int dist_y = 16 - VG_MIN( VG_MIN( y, 16 ), 16-VG_MAX( y-16-world.h, 0 ) ); int dist = VG_MAX( dist_x, dist_y ) * 16; -- 2.25.1