Skip to content

Commit

Permalink
apply to MainScene
Browse files Browse the repository at this point in the history
  • Loading branch information
Acivev committed Dec 17, 2024
1 parent 0468d0a commit 94d8c7b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/ru/nsu/ccfit/zuev/osu/MainScene.java
Original file line number Diff line number Diff line change
@@ -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;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 94d8c7b

Please sign in to comment.