free-game-0.3.0.2: Create graphical applications for free.
Graphics.FreeGame.Util
Description
Synopsis
untickGame :: Game a -> Game (Game a)Source
Run a Game as one frame.
Game
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 the given font and color, and pass it to the Game computation.
loadPictureFromFile :: FilePath -> Game PictureSource
Create a Picture from the given file.
Picture