boring-game-0.1.0.1: An educational game

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

Collision

Description

 

Synopsis

Documentation

wallBounce2 :: Int -> PongGame -> PongGame Source #

Detect a collision with a paddle. Upon collisions, change the velocity of the ball to bounce it off the paddle. paddleBounce :: PongGame -> PongGame