Added Animation and Sound for Game End
This commit is contained in:
8
app/src/main/res/anim/shake.xml
Normal file
8
app/src/main/res/anim/shake.xml
Normal 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" />
|
||||
@@ -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>
|
||||
BIN
app/src/main/res/raw/busted.mp3
Normal file
BIN
app/src/main/res/raw/busted.mp3
Normal file
Binary file not shown.
BIN
app/src/main/res/raw/onehundredandeighty.mp3
Normal file
BIN
app/src/main/res/raw/onehundredandeighty.mp3
Normal file
Binary file not shown.
BIN
app/src/main/res/raw/sad_busted.mp3
Normal file
BIN
app/src/main/res/raw/sad_busted.mp3
Normal file
Binary file not shown.
BIN
app/src/main/res/raw/winner.mp3
Normal file
BIN
app/src/main/res/raw/winner.mp3
Normal file
Binary file not shown.
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user