From: hgn Date: Mon, 10 Jan 2022 18:04:06 +0000 (+0000) Subject: cleaned up world edges (revision) X-Git-Url: https://harrygodden.com/git/?p=fishladder.git;a=commitdiff_plain;h=d8147792a9d9dbf52d2e816ac4593ccf8532fd70 cleaned up world edges (revision) --- 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;