From daacae7ce7ae2b1b5f5920bad8a279e2d61403b3 Mon Sep 17 00:00:00 2001 From: ilotterytea Date: Thu, 1 Sep 2022 22:50:39 +0600 Subject: вероятно это решение к #8 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/src/com/ilotterytea/maxoning/screens/GameScreen.java | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'core/src/com/ilotterytea/maxoning') diff --git a/core/src/com/ilotterytea/maxoning/screens/GameScreen.java b/core/src/com/ilotterytea/maxoning/screens/GameScreen.java index 6a00fff..8973870 100644 --- a/core/src/com/ilotterytea/maxoning/screens/GameScreen.java +++ b/core/src/com/ilotterytea/maxoning/screens/GameScreen.java @@ -45,7 +45,7 @@ public class GameScreen implements Screen, InputProcessor { ArrayList items; - boolean isShopping = false; + boolean isShopping = true; ArrayList> bgTiles; @@ -118,7 +118,7 @@ public class GameScreen implements Screen, InputProcessor { maxon.setDrawable(maxonCat.getDrawable()); player.points += 1 * player.multiplier; - TypingLabel label = new TypingLabel("{SHAKE}{RAINBOW}+" + 1 * player.multiplier + "{ENDRAINBOW}{ENDSHAKE}", skin, "default"); + final TypingLabel label = new TypingLabel("{SHAKE}{RAINBOW}+" + Math.round(1 * player.multiplier) + "{ENDRAINBOW}{ENDSHAKE}", skin, "default"); label.setPosition( maxon.getX() + (maxon.getWidth() / 2f) - 8, @@ -131,6 +131,13 @@ public class GameScreen implements Screen, InputProcessor { label.getX(), label.getY() + (float) Math.floor(Math.random() * 156), 5f, Interpolation.exp5Out) )); + Timer.schedule(new Timer.Task() { + @Override + public void run() { + label.remove(); + } + }, 10f); + stage.addActor(label); } }); -- cgit v1.2.3