boring-game-0.1.0.1: An educational game

Copyright(c) Truong Dung 2017
LicenseGPL-3
Maintainercheckraiser11@gmail.com
Stabilityexperimental
PortabilityPOSIX
Safe HaskellNone
LanguageHaskell2010

Pong

Description

 

Synopsis

Documentation

data PongGame Source #

Data describing the state of the pong game

ballLoc :: PongGame -> (Float, Float) Source #

Pong ball (x, y) location

ballVel :: PongGame -> (Float, Float) Source #

Pong ball (x, y) velocity

render Source #

Arguments

:: PongGame

The game state to render.

-> Picture

A picture of this game state.

Convert a game state into a picture

initialState :: PongGame Source #

The initial state for the game of Pong