Add music, beach fishing, catching, and selectable creature partners
This commit is contained in:
1 parent
3469f2e6dd
commit
cb77683a87
24 files changed
+1307
-104
No files matched your search
+22
-5
@@ -79,11 +79,11 @@ int near_map_exit(int x, int y)
|
||||
{
|
||||
if (current_room == OUTSIDE && x >= 216 && x <= 222 && y >= 108 && y <= 117)
|
||||
return 1;
|
||||
if (current_room == MELLON_GARDEN)
|
||||
return x >= 17 && x <= 24 && y >= 108 && y <= 117;
|
||||
if (current_room == MELLON_GARDEN && x >= 17 && x <= 24 && y >= 108 && y <= 117)
|
||||
return 1;
|
||||
if (x < 102 || x > 114) return 0;
|
||||
if (current_room == OUTSIDE) return y >= 124 && y <= 131;
|
||||
if (current_room == ROUTE) return y >= 47 && y <= 54;
|
||||
if (current_room == OUTSIDE || current_room == MELLON_GARDEN) return y >= 124 && y <= 131;
|
||||
if (current_room == ROUTE || current_room == BEACH) return y >= 47 && y <= 54;
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -111,6 +111,16 @@ TEST_INTERNAL int use_map_exit(int *x, int *y, unsigned keys)
|
||||
*x = 210;
|
||||
*y = 113;
|
||||
player_facing = FACING_LEFT;
|
||||
} else if (current_room == MELLON_GARDEN && *y == 131 && (keys & DOWN)) {
|
||||
current_room = BEACH;
|
||||
*x = 108;
|
||||
*y = 60;
|
||||
player_facing = FACING_DOWN;
|
||||
} else if (current_room == BEACH && *y == 47 && (keys & UP)) {
|
||||
current_room = MELLON_GARDEN;
|
||||
*x = 108;
|
||||
*y = 125;
|
||||
player_facing = FACING_UP;
|
||||
} else {
|
||||
return 0;
|
||||
}
|
||||
@@ -158,7 +168,8 @@ int use_door(int *x, int *y)
|
||||
void reset_position(int *x, int *y)
|
||||
{
|
||||
*x = indoors() ? 120 : current_room == MELLON_GARDEN ? 31 : 108;
|
||||
*y = indoors() ? 119 : current_room == ROUTE ? 60 : current_room == MELLON_GARDEN ? 113 : 103;
|
||||
*y = indoors() ? 119 : (current_room == ROUTE || current_room == BEACH) ? 60 :
|
||||
current_room == MELLON_GARDEN ? 113 : 103;
|
||||
player_facing = FACING_DOWN;
|
||||
grass_steps = 0;
|
||||
diagonal_fraction = 0;
|
||||
@@ -167,6 +178,12 @@ void reset_position(int *x, int *y)
|
||||
|
||||
TEST_INTERNAL int can_walk(int x, int y)
|
||||
{
|
||||
if (current_room == BEACH) {
|
||||
if (x < 17 || x > 222 || y < 47 || y > beach_shoreline(x) - 5) return 0;
|
||||
if ((x < 42 || x > 194) && y < 72) return 0; /* Palm trunks. */
|
||||
if (x > 35 && x < 75 && y > 68 && y < 98) return 0; /* Umbrella and towel. */
|
||||
return 1;
|
||||
}
|
||||
if (current_room == ROUTE) {
|
||||
if (x < 32 || x > 207 || y < 47 || y > 131) return 0;
|
||||
if (x > 143 && x < 216 && y < 85) return 0; /* Pond. */
|
||||
|
||||
Reference in new issue
Block a user