Reflect bullets at the level border
This commit is contained in:
parent
89e87826a8
commit
4993b2ef07
2 changed files with 32 additions and 23 deletions
16
src/Game.hs
16
src/Game.hs
|
@ -17,13 +17,13 @@ import qualified Data.Map as M
|
|||
|
||||
|
||||
data Tank = Tank
|
||||
{ tankX :: !Micro
|
||||
, tankY :: !Micro
|
||||
, tankDir :: !Micro
|
||||
, tankAim :: !Micro
|
||||
, tankSpeed :: !Micro
|
||||
, tankTurnspeed :: !Micro
|
||||
, tankMoving :: !Bool
|
||||
{ tankX :: !Micro
|
||||
, tankY :: !Micro
|
||||
, tankDir :: !Micro
|
||||
, tankAim :: !Micro
|
||||
, tankSpeed :: !Micro
|
||||
, tankTurnspeed :: !Micro
|
||||
, tankMoving :: !Bool
|
||||
, tankBulletSpeed :: !Micro
|
||||
, tankBulletBounces :: !Int
|
||||
, tankBulletsLeft :: !Int
|
||||
|
@ -41,7 +41,7 @@ data Bullet = Bullet
|
|||
data GameState = GameState
|
||||
{ level :: !Level
|
||||
, tanks :: ![Tank]
|
||||
, bullets :: ![Bullet]
|
||||
, bullets :: ![Bullet]
|
||||
, textures :: !(M.Map Texture TextureObject)
|
||||
} deriving (Show)
|
||||
|
||||
|
|
Reference in a new issue