free-game-0.3.2.7: Create graphical applications for free.

Portabilitynon-portable
Stabilityexperimental
MaintainerFumiaki Kinsohita <fumiexcel@gmail.com>
Safe HaskellNone

Graphics.FreeGame.Util

Description

 

Synopsis

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

randomness :: (Random r, MonadFree GameAction m) => (r, r) -> m rSource

Get a given range of value.

degrees :: Float -> FloatSource

Convert radians to degrees.

radians :: Float -> FloatSource

Convert degrees to radians.

loadPictureFromFile :: MonadFree GameAction m => FilePath -> m PictureSource

Create a Picture from the given file.

loadBitmaps :: FilePath -> Q [Dec]Source

use with getDataFileName

loadBitmapsWith :: Name -> FilePath -> Q [Dec]Source

Load and define all pictures in the specified directory.