Portability | non-portable |
---|---|
Stability | experimental |
Maintainer | Fumiaki Kinsohita <fumiexcel@gmail.com> |
Safe Haskell | None |
- untick :: MonadFree GameAction m => Free GameAction a -> m (Either (Free GameAction a) a)
- untickGame :: MonadFree GameAction m => Free GameAction a -> m (Free GameAction a)
- untickInfinite :: MonadFree GameAction m => Free GameAction Void -> m (Free GameAction Void)
- randomness :: (Random r, MonadFree GameAction m) => (r, r) -> m r
- degrees :: Float -> Float
- radians :: Float -> Float
- loadPictureFromFile :: MonadFree GameAction m => FilePath -> m Picture
- loadBitmaps :: FilePath -> Q [Dec]
- loadBitmapsWith :: Name -> FilePath -> Q [Dec]
Documentation
untick :: MonadFree GameAction m => Free GameAction a -> m (Either (Free GameAction a) a)Source
Run a Game
as one frame.
untickGame :: MonadFree GameAction m => Free GameAction a -> m (Free GameAction a)Source
Deprecated: use untick or untickInfinite instead
untickInfinite :: MonadFree GameAction m => Free GameAction Void -> m (Free GameAction Void)Source
An infinite version of untick
.
randomness :: (Random r, MonadFree GameAction m) => (r, r) -> m rSource
Get a given range of value.
loadPictureFromFile :: MonadFree GameAction m => FilePath -> m PictureSource
Create a Picture
from the given file.
loadBitmaps :: FilePath -> Q [Dec]Source
use with getDataFileName