From 94d8c7bd89d1e4e55e6e5616e946b7f51f183ff2 Mon Sep 17 00:00:00 2001 From: acivev Date: Tue, 17 Dec 2024 13:28:16 +0100 Subject: [PATCH] apply to MainScene --- src/ru/nsu/ccfit/zuev/osu/MainScene.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ru/nsu/ccfit/zuev/osu/MainScene.java b/src/ru/nsu/ccfit/zuev/osu/MainScene.java index c6d38b069..c00878fbc 100644 --- a/src/ru/nsu/ccfit/zuev/osu/MainScene.java +++ b/src/ru/nsu/ccfit/zuev/osu/MainScene.java @@ -1,5 +1,7 @@ package ru.nsu.ccfit.zuev.osu; +import static com.acivev.ui.EffectKt.addSnowfall; + import android.content.Context; import android.graphics.PointF; import android.os.PowerManager; @@ -343,6 +345,8 @@ public boolean onAreaTouched(final TouchEvent pSceneTouchEvent, final TextureRegion nptex = ResourceManager.getInstance().getTexture("music_np"); music_nowplay = new Sprite(Utils.toRes(Config.getRES_WIDTH() - 500), 0, (float) (40 * nptex.getWidth()) / nptex.getHeight(), 40, nptex); + addSnowfall(scene, context); + for (int i = 0; i < 120; i++) { final float pX = (float) Config.getRES_WIDTH() / 2; final float pY = (float) Config.getRES_HEIGHT() / 2;