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 , bestScore : Int } initialGame : Vec2 -> Int -> Game initialGame playerPos bestScore = let initPlayer = { pos = playerPos , speed = { x = 0, y = 0 } , config = White } in { time = 0 , keysDown = [] , score = 0 , player = initPlayer , cloud = initCloud , bestScore = bestScore }