From d37a301ed39bac823e0f2223b8d229b417e128c7 Mon Sep 17 00:00:00 2001 From: Joris Guyonvarch Date: Wed, 8 Oct 2014 22:13:41 +0200 Subject: Adding a power to change the player color that reverse points to catch and points to avoid --- src/Game.elm | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/Game.elm') 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 -- cgit v1.2.3