X-Git-Url: https://deadsoftware.ru/gitweb?p=cavecraft.git;a=blobdiff_plain;f=src%2FPlayer.mpsrc;h=947adf9cbd706749e7dd07d8b950b446f7087312;hp=b41c8e3b7ff82cfcc4eda09aa5e8cbb6f7f2895b;hb=4d7cf2ab1e10d9926d03afb5a3f883bcf5312469;hpb=9115be0a19d5716f33a2e2cba76f3447ce0f4c2f diff --git a/src/Player.mpsrc b/src/Player.mpsrc index b41c8e3..947adf9 100644 --- a/src/Player.mpsrc +++ b/src/Player.mpsrc @@ -42,7 +42,7 @@ interface implementation - uses func, phy, vars, Canvas, drop, items, jsr75i, inv; + uses func, phy, vars, Canvas, drop, jsr75i, inv, Items; const PLAYER_W=8; @@ -188,9 +188,9 @@ implementation DrawImage(playerBody[posi], x - camx, y - camy); DrawImage(playerLegs[posi, animLegs], x - 2 - camx, y + 20 - camy); - if animHand = 0 then DrawSmallItem(Inv.GetItem(invslot), x - camx, y + 14 - camy); - else if posi = POSI_RIGHT then DrawSmallItem(Inv.GetItem(invslot), x + 10 - camx, y + 5 - camy + animHand); - else if posi = POSI_LEFT then DrawSmallItem(Inv.GetItem(invslot), x - 10 - camx, y + 5 - camy + animHand); + if animHand = 0 then Items.DrawSmall(Inv.GetItem(invslot), x - camx, y + 14 - camy); + else if posi = POSI_RIGHT then Items.DrawSmall(Inv.GetItem(invslot), x + 10 - camx, y + 5 - camy + animHand); + else if posi = POSI_LEFT then Items.DrawSmall(Inv.GetItem(invslot), x - 10 - camx, y + 5 - camy + animHand); if (animHand = 0) or (posi = POSI_RIGHT) then DrawImage(playerHand[posi, animHand], x + 2 - camx, y + 8 - camy); else DrawImage(playerHand[posi, animHand], x - 6 - camx, y + 8 - camy);