aboutsummaryrefslogtreecommitdiff
path: root/src/Main.elm
diff options
context:
space:
mode:
Diffstat (limited to 'src/Main.elm')
-rw-r--r--src/Main.elm21
1 files changed, 14 insertions, 7 deletions
diff --git a/src/Main.elm b/src/Main.elm
index 6be5766..329492a 100644
--- a/src/Main.elm
+++ b/src/Main.elm
@@ -5,18 +5,25 @@ import Random
import Graphics.Element (Element)
import Html (Html)
-import Game (Game, initialGame)
-import Display (display)
-import Step (step)
+import Model.Game (Game, initialGame)
+import Model.Vec2 (originVec)
+import Model.Config (Config(White))
+
+import Update.Update (update)
+
import Input (getInput)
-import Vec2 (originVec)
-import Config (Config(White))
+
+import View.Page (page)
main : Signal Html
-main = Signal.map display game
+main = Signal.map page game
game : Signal Game
-game = Signal.foldp step (initialGame initialSeed originVec White 0) getInput
+game =
+ Signal.foldp
+ update
+ (initialGame initialSeed originVec White 0)
+ getInput
port initialTime : Int