diff options
Diffstat (limited to 'src/Game.elm')
-rw-r--r-- | src/Game.elm | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/src/Game.elm b/src/Game.elm deleted file mode 100644 index e294942..0000000 --- a/src/Game.elm +++ /dev/null @@ -1,39 +0,0 @@ -module Game where - -import Random (..) - -import Player (..) -import Cloud (..) -import Vec2 (Vec2) -import Config (..) -import Keyboard (KeyCode) - -type alias Game = - { time : Float - , keysDown : List KeyCode - , score : Int - , player : Player - , cloud : Cloud - , bestScore : Int - , seed : Seed - } - -initialGame : Seed -> Vec2 -> Config -> Int -> Game -initialGame seed playerPos config bestScore = - let initPlayer = - { pos = playerPos - , speed = - { x = 0 - , y = 0 - } - , config = config - } - in - { time = 0 - , keysDown = [] - , score = 0 - , player = initPlayer - , cloud = initCloud - , bestScore = bestScore - , seed = seed - } |