11package dartzee.theme
22
3+ import dartzee.game.GameType
4+ import dartzee.screen.animation.Animation
5+ import dartzee.screen.animation.BadLuckTrigger
6+ import dartzee.screen.animation.BruceyBonusTrigger
7+ import dartzee.screen.animation.BustTrigger
8+ import dartzee.screen.animation.CompositeAnimation
9+ import dartzee.screen.animation.DartScoreTrigger
10+ import dartzee.screen.animation.IAnimation
11+ import dartzee.screen.animation.IAnimationTrigger
312import java.awt.Color
413import java.awt.Point
514import java.awt.Rectangle
@@ -117,11 +126,39 @@ private fun getBannerDetails(
117126 return listOf (topBanner)
118127}
119128
129+ private val bingpotAnimation =
130+ CompositeAnimation ((1 .. 2 ).map { Animation (" bingpot$it " , " /theme/pride/horrific/holt.png" ) })
131+
132+ private val bustAnimation =
133+ CompositeAnimation ((1 .. 3 ).map { Animation (" buster$it " , " /theme/pride/horrific/lily.png" ) })
134+
135+ private val ohMy =
136+ CompositeAnimation (
137+ (1 .. 3 ).map { Animation (" oh-my$it " , " /theme/pride/horrific/george-takei.png" ) }
138+ )
139+
140+ private val prideAnimations: List <Pair <IAnimationTrigger , IAnimation >> =
141+ GameType .values().flatMap { gameType ->
142+ listOf (
143+ DartScoreTrigger (gameType, 50 ) to bingpotAnimation,
144+ DartScoreTrigger (gameType, 25 ) to bingpotAnimation,
145+ DartScoreTrigger (gameType, 0 ) to
146+ CompositeAnimation (
147+ listOf (ohMy, Animation (" nonsense" , " /theme/pride/horrific/ncuti.png" ))
148+ ),
149+ )
150+ } +
151+ listOf (
152+ BadLuckTrigger to Animation (" hooray" , " /theme/pride/horrific/todd.png" ),
153+ BruceyBonusTrigger to Animation (" betterEfforts" , " /theme/pride/horrific/julian.png" ),
154+ BustTrigger to bustAnimation,
155+ )
156+
120157val Themes .PRIDE : Theme
121158 get() =
122159 Theme (
123160 ThemeId .Pride ,
124- " TODO " ,
161+ " Is there enough rainbow in this theme d'you think?! " ,
125162 PrideColors .red,
126163 PrideColors .purple,
127164 Color .decode(" #FFFFC5" ),
@@ -134,6 +171,7 @@ val Themes.PRIDE: Theme
134171 festivalInfo = FestivalInfo (::findPride, " The next parade begins" ),
135172 customIcons = mapOf (" /flags/humanFlag.png" to ::randomHumanFlag),
136173 unlockDate = LocalDate .of(2026 , Month .JUNE , 1 ),
174+ animations = prideAnimations.toMap(),
137175 )
138176
139177private fun findPride (year : Int ): Pair <LocalDate , LocalDate > =
0 commit comments