X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=fishladder.c;h=0147e5ca44d007952e6cd01fcd69df69c4e75a79;hb=d8147792a9d9dbf52d2e816ac4593ccf8532fd70;hp=a568516123b8ab072e3cbf5ad65fa62691bd96d8;hpb=3833577f79ac1e3851423208c404288b33530f0b;p=fishladder.git 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;