A few bug fixes, new item, canoe, added.

This commit is contained in:
Storm Dragon
2026-01-24 00:57:00 -05:00
parent 78e8d434a3
commit dfd6a0f3a1
13 changed files with 339 additions and 51 deletions

View File

@@ -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) {