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 }