Skip to content

Commit 82fe3df

Browse files
committed
miss animation for oktoberfest
1 parent f2748d7 commit 82fe3df

6 files changed

Lines changed: 10 additions & 0 deletions

File tree

‎src/main/kotlin/dartzee/theme/Themes.kt‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ package dartzee.theme
33
import dartzee.game.GameType
44
import dartzee.`object`.ColourWrapper
55
import dartzee.screen.animation.Animation
6+
import dartzee.screen.animation.CompositeAnimation
67
import dartzee.screen.animation.DartScoreTrigger
78
import dartzee.screen.animation.IAnimation
89
import dartzee.screen.animation.IAnimationTrigger
@@ -78,6 +79,14 @@ object Themes {
7879
menuFontSize = 20f,
7980
)
8081

82+
private val beerSmashAnimation =
83+
CompositeAnimation(
84+
(1..3).map { Animation("smash$it", "/theme/oktoberfest/horrific/dropped-beer.png") } +
85+
(1..3).map {
86+
Animation("smash$it", "/theme/oktoberfest/horrific/dropped-beer-2.png")
87+
}
88+
)
89+
8190
private val oktoberfestAnimations: List<Pair<IAnimationTrigger, IAnimation>> =
8291
GameType.values().flatMap { gameType ->
8392
listOf(
@@ -87,6 +96,7 @@ object Themes {
8796
Animation("blimey", "/theme/oktoberfest/horrific/blimey.png"),
8897
DartScoreTrigger(gameType, 18) to
8998
Animation("eighteen-pints", "/theme/oktoberfest/horrific/pints-of-lager.png"),
99+
DartScoreTrigger(gameType, 0) to beerSmashAnimation,
90100
)
91101
}
92102

221 KB
Loading
134 KB
Loading

‎src/main/resources/wav/smash1.wav‎

122 KB
Binary file not shown.

‎src/main/resources/wav/smash2.wav‎

93.2 KB
Binary file not shown.

‎src/main/resources/wav/smash3.wav‎

180 KB
Binary file not shown.

0 commit comments

Comments
 (0)