diff options
author | Joris Guyonvarch | 2014-10-08 22:13:41 +0200 |
---|---|---|
committer | Joris Guyonvarch | 2014-10-08 22:27:11 +0200 |
commit | d37a301ed39bac823e0f2223b8d229b417e128c7 (patch) | |
tree | e7e1155e8678bfb32908452993234078527d6664 /src/Game.elm | |
parent | 4521cdf1bb5725c9d497e5fb0c03943ad03a052f (diff) |
Adding a power to change the player color that reverse points to catch and points to avoid
Diffstat (limited to 'src/Game.elm')
-rw-r--r-- | src/Game.elm | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/Game.elm b/src/Game.elm index 83d8baa..0a12db8 100644 --- a/src/Game.elm +++ b/src/Game.elm @@ -3,9 +3,12 @@ module Game where import Player (..) import Cloud (..) import Vec2 (Vec2) +import Config (..) +import Keyboard (KeyCode) type Game = { time : Float + , keysDown : [KeyCode] , score : Int , player : Player , cloud : Cloud @@ -17,9 +20,11 @@ initialGame playerPos bestScore = let initPlayer = { pos = playerPos , speed = { x = 0, y = 0 } + , config = White } in { time = 0 + , keysDown = [] , score = 0 , player = initPlayer , cloud = initCloud |