Safe Haskell | None |
---|---|
Language | Haskell2010 |
Screen frames and animations.
- data Animation
- renderAnim :: FrameForall -> Animation -> Frames
- pushAndDelay :: Animation
- blinkColorActor :: Point -> Char -> Color -> Color -> Animation
- twirlSplash :: (Point, Point) -> Color -> Color -> Animation
- blockHit :: (Point, Point) -> Color -> Color -> Animation
- blockMiss :: (Point, Point) -> Animation
- deathBody :: Point -> Animation
- shortDeathBody :: Point -> Animation
- actorX :: Point -> Animation
- swapPlaces :: (Point, Point) -> Animation
- teleport :: (Point, Point) -> Animation
- fadeout :: Bool -> Int -> X -> Y -> Rnd Animation
Documentation
Animation is a list of frame modifications to play one by one, where each modification if a map from positions to level map symbols.
renderAnim :: FrameForall -> Animation -> Frames Source #
Render animations on top of a screen frame.
twirlSplash :: (Point, Point) -> Color -> Color -> Animation Source #
Attack animation. A part of it also reused for self-damage and healing.
shortDeathBody :: Point -> Animation Source #
Death animation for an organic body, short version (e.g., for enemies).