diff --git a/data/gfx/tiles.gif b/data/gfx/tiles.gif index cc12712..47fc9f6 100644 Binary files a/data/gfx/tiles.gif and b/data/gfx/tiles.gif differ diff --git a/data/maps/rooms_background.gif b/data/maps/rooms_background.gif index 1864907..ade1fd4 100644 Binary files a/data/maps/rooms_background.gif and b/data/maps/rooms_background.gif differ diff --git a/data/maps/rooms_foreground.gif b/data/maps/rooms_foreground.gif index bbad1c8..ee6f1ac 100644 Binary files a/data/maps/rooms_foreground.gif and b/data/maps/rooms_foreground.gif differ diff --git a/data/maps/rooms_items.gif b/data/maps/rooms_items.gif index a5948a6..ee77d80 100644 Binary files a/data/maps/rooms_items.gif and b/data/maps/rooms_items.gif differ diff --git a/data/modules/ia/hero.lua b/data/modules/ia/hero.lua index c887ea2..432f05e 100644 --- a/data/modules/ia/hero.lua +++ b/data/modules/ia/hero.lua @@ -52,19 +52,19 @@ function ia.update_hero() -- Si li han pegat... if sprites.hero.has_been_hit then if sprites.hero.flipped then - local tx, ty = (sprites.hero.pos.x+3)>>3, (sprites.hero.pos.y+16)>>3 + local tx, ty = (sprites.hero.pos.x+12)>>3, (sprites.hero.pos.y+16)>>3 if map.tile(tx,ty) < 16 and map.tile(tx,ty-1) < 16 then - if txrooms.pos.x+19 then + game.change_room(1,0) else sprites.hero.pos.x = sprites.hero.pos.x + 1 end end else - local tx, ty = (sprites.hero.pos.x+12)>>3, (sprites.hero.pos.y+16)>>3 + local tx, ty = (sprites.hero.pos.x+3)>>3, (sprites.hero.pos.y+16)>>3 if map.tile(tx,ty) < 16 and map.tile(tx,ty-1) < 16 then - if tx>rooms.pos.x+19 then - game.change_room(1,0) + if tx 0 then + editor.msg_timeout = editor.msg_timeout - 1 + draw.text(editor.msg, 10, 96, 8) + end + menu.draw() end,