X-Git-Url: https://deadsoftware.ru/gitweb?a=blobdiff_plain;f=core%2Fsrc%2Fru%2Fdeadsoftware%2Fcavecraft%2Fgame%2FGameProc.java;h=4b841bd47af0fd7103b3ac70b50f9cd73e67adc4;hb=8acb72a54d755c4df279244ca986d244e2700a08;hp=8f5dca275d9b6c3fd3c8e3402cf5212f09cbbdb8;hpb=c217099d21a0703347236f2d83e4d20c266f9be1;p=cavedroid.git diff --git a/core/src/ru/deadsoftware/cavecraft/game/GameProc.java b/core/src/ru/deadsoftware/cavecraft/game/GameProc.java index 8f5dca2..4b841bd 100644 --- a/core/src/ru/deadsoftware/cavecraft/game/GameProc.java +++ b/core/src/ru/deadsoftware/cavecraft/game/GameProc.java @@ -53,7 +53,7 @@ public class GameProc implements Serializable{ renderer = new GameRenderer(this,480, 480*((float)GameScreen.getHeight()/GameScreen.getWidth())); } - maxCreativeScroll = Items.BLOCKS.size/40; + maxCreativeScroll = Items.BLOCKS.size/8; GameSaver.save(this); } @@ -121,8 +121,7 @@ public class GameProc implements Serializable{ if (touchDownButton== Input.Buttons.RIGHT) { world.placeToBackground(cursorX, cursorY, player.inventory[invSlot]); - } else if (touchDownButton==Input.Buttons.LEFT && - touchDownY< Assets.invBar.getRegionHeight() && + } else if (touchDownY< Assets.invBar.getRegionHeight() && touchDownX>renderer.camera.viewportWidth/2-Assets.invBar.getRegionWidth()/2 && touchDownX