aboutsummaryrefslogtreecommitdiff
path: root/src/Game.elm
diff options
context:
space:
mode:
Diffstat (limited to 'src/Game.elm')
-rw-r--r--src/Game.elm5
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