Safe Haskell | None |
---|
Screen frames and animations.
- data Attr = Attr {}
- defaultAttr :: Attr
- data AttrChar = AttrChar {}
- data SingleFrame = SingleFrame {}
- data Animation
- rederAnim :: X -> Y -> SingleFrame -> Animation -> [Maybe SingleFrame]
- twirlSplash :: (Maybe Point, Maybe Point) -> Color -> Color -> Animation
- blockHit :: (Maybe Point, Maybe Point) -> Color -> Color -> Animation
- blockMiss :: (Maybe Point, Maybe Point) -> Animation
- deathBody :: Point -> Animation
- swapPlaces :: (Maybe Point, Maybe Point) -> Animation
Documentation
Text attributes: foreground and backgroud colors.
The default attribute, to optimize attribute setting.
Animation is a list of frame modifications to play one by one, where each modification if a map from locations to level map symbols.
rederAnim :: X -> Y -> SingleFrame -> Animation -> [Maybe SingleFrame]Source
Render animations on top of a screen frame.
twirlSplash :: (Maybe Point, Maybe Point) -> Color -> Color -> AnimationSource
Attack animation. A part of it also reused for self-damage and healing.