LambdaHack-0.7.0.0: A game engine library for roguelike dungeon crawlers

Safe HaskellNone
LanguageHaskell2010

Game.LambdaHack.Client.UI.Animation

Contents

Description

Screen frames and animations.

Synopsis

Documentation

data Animation Source #

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.

Located in this module to keep Animation abstract.

twirlSplash :: (Point, Point) -> Color -> Color -> Animation Source #

Attack animation. A part of it also reused for self-damage and healing.

blockHit :: (Point, Point) -> Color -> Color -> Animation Source #

Attack that hits through a block.

blockMiss :: (Point, Point) -> Animation Source #

Attack that is blocked.

deathBody :: Point -> Animation Source #

Death animation for an organic body.

shortDeathBody :: Point -> Animation Source #

Death animation for an organic body, short version (e.g., for enemies).

actorX :: Point -> Animation Source #

Mark actor location animation.

teleport :: (Point, Point) -> Animation Source #

Actor teleport animation.

swapPlaces :: (Point, Point) -> Animation Source #

Swap-places animation, both hostile and friendly.

Internal operations