Safe Haskell | None |
---|---|
Language | Haskell2010 |
Types
Synopsis
- type Position = (Float, Float)
- type Velocity = (Float, Float)
- type Restitution = Float
- type Speed = Float
- type Coords = (Float, Float)
- data PlayerBall = PlayerBall {}
- data EnemyBallType
- data EnemyPeg = EnemyPeg {}
- data MapInfo = MapInfo {
- enemyBalls :: [EnemyPeg]
- cannonPosition :: Position
- leftWallX :: Float
- rightWallX :: Float
- floorY :: Float
- ceilingY :: Float
- backgroundPictureId :: Int
- backgroundTrackId :: Int
- data Sprites = Sprites {
- cannonSprite :: Picture
- backgrounds :: [Maybe Picture]
- data MetaInfo = MetaInfo {}
- type SoundList = [(String, Chunk)]
Documentation
type Restitution = Float #
Restitution type.
data PlayerBall #
Player ball info.
Constructors
PlayerBall | |
Fields
|
Instances
Read PlayerBall # | default |
Defined in Types Methods readsPrec :: Int -> ReadS PlayerBall # readList :: ReadS [PlayerBall] # readPrec :: ReadPrec PlayerBall # readListPrec :: ReadPrec [PlayerBall] # | |
Show PlayerBall # | default |
Defined in Types Methods showsPrec :: Int -> PlayerBall -> ShowS # show :: PlayerBall -> String # showList :: [PlayerBall] -> ShowS # |
data EnemyBallType #
Enemy ball type.
Constructors
Destructible Int | Destructible ball type with durability |
Indestructible | Indestructible ball type. |
Instances
Eq EnemyBallType # | default |
Defined in Types Methods (==) :: EnemyBallType -> EnemyBallType -> Bool # (/=) :: EnemyBallType -> EnemyBallType -> Bool # | |
Read EnemyBallType # | default |
Defined in Types Methods readsPrec :: Int -> ReadS EnemyBallType # readList :: ReadS [EnemyBallType] # | |
Show EnemyBallType # | default |
Defined in Types Methods showsPrec :: Int -> EnemyBallType -> ShowS # show :: EnemyBallType -> String # showList :: [EnemyBallType] -> ShowS # | |
Generic EnemyBallType # | default |
Binary EnemyBallType # | Binary instance of |
Defined in Types | |
type Rep EnemyBallType # | |
Defined in Types type Rep EnemyBallType = D1 ('MetaData "EnemyBallType" "Types" "main" 'False) (C1 ('MetaCons "Destructible" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int)) :+: C1 ('MetaCons "Indestructible" 'PrefixI 'False) (U1 :: Type -> Type)) |
Constructors
EnemyPeg | |
Fields
|
Instances
Eq EnemyPeg # | default |
Read EnemyPeg # | default |
Show EnemyPeg # | default |
Generic EnemyPeg # | default |
Binary EnemyPeg # | Binary instance of |
type Rep EnemyPeg # | |
Defined in Types type Rep EnemyPeg = D1 ('MetaData "EnemyPeg" "Types" "main" 'False) (C1 ('MetaCons "EnemyPeg" 'PrefixI 'True) (S1 ('MetaSel ('Just "enemyPosition") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Position) :*: (S1 ('MetaSel ('Just "enemyRadius") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Float) :*: S1 ('MetaSel ('Just "ballType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 EnemyBallType)))) |
Constructors
MapInfo | |
Fields
|
Instances
Constructors
Sprites | |
Fields
|
Game meta info.
Constructors
MetaInfo | |
Fields
|