cleaned up world edges (revision)
[fishladder.git] / fishladder.c
index a568516123b8ab072e3cbf5ad65fa62691bd96d8..0147e5ca44d007952e6cd01fcd69df69c4e75a79 100644 (file)
@@ -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;