A few bug fixes, new item, canoe, added.
This commit is contained in:
@@ -332,9 +332,10 @@ void main()
|
||||
if(key_down(KEY_LEFT) && x > 0 && !climbing && !falling && !rope_climbing)
|
||||
{
|
||||
facing = 0;
|
||||
// Check mountain movement
|
||||
if (can_move_mountain(x, x - 1)) {
|
||||
x--;
|
||||
int target_x = x - 1;
|
||||
// Check mountain movement and deep water
|
||||
if (can_move_mountain(x, target_x) && can_enter_stream_tile(target_x)) {
|
||||
x = target_x;
|
||||
// Always update elevation to match ground (0 if not in mountain)
|
||||
int new_elevation = get_mountain_elevation_at(x);
|
||||
if (new_elevation != y) {
|
||||
@@ -350,9 +351,10 @@ void main()
|
||||
else if(key_down(KEY_RIGHT) && x < MAP_SIZE - 1 && !climbing && !falling && !rope_climbing)
|
||||
{
|
||||
facing = 1;
|
||||
// Check mountain movement
|
||||
if (can_move_mountain(x, x + 1)) {
|
||||
x++;
|
||||
int target_x = x + 1;
|
||||
// Check mountain movement and deep water
|
||||
if (can_move_mountain(x, target_x) && can_enter_stream_tile(target_x)) {
|
||||
x = target_x;
|
||||
// Always update elevation to match ground (0 if not in mountain)
|
||||
int new_elevation = get_mountain_elevation_at(x);
|
||||
if (new_elevation != y) {
|
||||
|
||||
Reference in New Issue
Block a user