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

Portabilityportable
Stabilityprovisional
MaintainerFumiaki Kinsohita <fumiexcel@gmail.com>
Safe HaskellNone

Graphics.FreeGame.Util

Description

 

Synopsis

Documentation

untickGame :: Game a -> Game (Game a)Source

Run a Game as one frame.

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.

withRenderString :: Font -> (Word8, Word8, Word8) -> String -> (Picture -> Game a) -> Game aSource

Render the string by given font and color, and pass it to the Game computation.

loadPictureFromFile :: FilePath -> Game PictureSource

Create a Picture from given file path.