Safe Haskell | None |
---|
Screen frames and animations.
- data Attr = Attr {}
- defAttr :: Attr
- data AttrChar = AttrChar {}
- data SingleFrame = SingleFrame {}
- emptySingleFrame :: SingleFrame
- xsizeSingleFrame :: SingleFrame -> X
- ysizeSingleFrame :: SingleFrame -> X
- data Animation
- type Frames = [Maybe SingleFrame]
- renderAnim :: X -> Y -> SingleFrame -> Animation -> Frames
- restrictAnim :: EnumSet Point -> Animation -> Animation
- twirlSplash :: (Point, Point) -> Color -> Color -> Animation
- blockHit :: (Point, Point) -> Color -> Color -> Animation
- blockMiss :: (Point, Point) -> Animation
- deathBody :: Point -> Animation
- swapPlaces :: (Point, Point) -> Animation
- fadeout :: Bool -> Bool -> X -> Y -> Rnd Animation
- data AcFrame
- = AcConfirm !SingleFrame
- | AcRunning !SingleFrame
- | AcNormal !SingleFrame
- | AcDelay
- data DebugModeCli = DebugModeCli {}
- defDebugModeCli :: DebugModeCli
Documentation
Text attributes: foreground and backgroud colors.
data SingleFrame Source
The data sufficent to draw a single game screen frame.
The fields are not strict, because sometimes frames are not used, e.g., when a keypress discards all frames not yet drawn and displayed.
Animation is a list of frame modifications to play one by one, where each modification if a map from positions to level map symbols.
type Frames = [Maybe SingleFrame]Source
Sequences of screen frames, including delays.
renderAnim :: X -> Y -> SingleFrame -> Animation -> FramesSource
Render animations on top of a screen frame.
twirlSplash :: (Point, Point) -> Color -> Color -> AnimationSource
Attack animation. A part of it also reused for self-damage and healing.
swapPlaces :: (Point, Point) -> AnimationSource
Swap-places animation, both hostile and friendly.
data DebugModeCli Source
DebugModeCli | |
|