Added Animation and Sound for Game End

This commit is contained in:
Alexander Doerflinger
2026-01-30 10:29:43 +01:00
parent c2f18d9328
commit 3fc5966e40
12 changed files with 182 additions and 6 deletions

View File

@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<translate xmlns:android="http://schemas.android.com/apk/res/android"
android:duration="50"
android:fromXDelta="0"
android:toXDelta="15"
android:repeatCount="8"
android:repeatMode="reverse"
android:interpolator="@android:anim/linear_interpolator" />

View File

@@ -157,4 +157,30 @@
</LinearLayout>
</LinearLayout>
<FrameLayout
android:id="@+id/dimmer"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/dim_color"
android:visibility="gone"/>
<TextView
android:id="@+id/winner_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent"
style="@style/TextAppearance.Oche.Hero"
android:textColor="@color/volt_green"
android:visibility="gone"
tools:text="Zander"/>
<nl.dionsegijn.konfetti.xml.KonfettiView
android:id="@+id/konfetti_view"
android:layout_width="match_parent"
android:layout_height="match_parent"
/>
</androidx.constraintlayout.widget.ConstraintLayout>

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -6,6 +6,7 @@
<color name="surface_primary">#FFFFFF</color> <!-- Pure white cards -->
<color name="surface_secondary">#E5E5EA</color> <!-- Light gray inputs -->
<color name="midnight_black">#0A0A0A</color> <!-- Real black for OLED DIsplays -->
<color name="dim_color">#BF313131</color>
<!-- Contextual Colors -->
<color name="triple_blue">#0056B3</color>