module Main where import Signal import Random import Graphics.Element (Element) import Html (Html) import Model.Game (Game, initialGame) import Model.Vec2 (originVec) import Model.Config (Config(White)) import Update.Update (update) import Input (getInput) import View.Page (pageView) main : Signal Html main = Signal.map pageView game game : Signal Game game = Signal.foldp update (initialGame initialSeed originVec White 0) getInput port initialTime : Int initialSeed : Random.Seed initialSeed = Random.initialSeed initialTime