projects
/
fishladder.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3833577
)
cleaned up world edges (revision)
author
hgn
<hgodden00@gmail.com>
Mon, 10 Jan 2022 18:04:06 +0000
(18:04 +0000)
committer
hgn
<hgodden00@gmail.com>
Mon, 10 Jan 2022 18:04:06 +0000
(18:04 +0000)
fishladder.c
patch
|
blob
|
history
diff --git
a/fishladder.c
b/fishladder.c
index a568516123b8ab072e3cbf5ad65fa62691bd96d8..0147e5ca44d007952e6cd01fcd69df69c4e75a79 100644
(file)
--- 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;