aboutsummaryrefslogtreecommitdiff
path: root/src/Game.elm
diff options
context:
space:
mode:
authorJoris Guyonvarch2015-03-07 15:12:02 +0100
committerJoris Guyonvarch2015-03-07 15:12:02 +0100
commit17a58e0c4c67f27d87635bf1b2ca50fb11795ad3 (patch)
tree8de99cdf0b4021ca6db6920537e7d0fa250e90bc /src/Game.elm
parent336816d2e8ab4afff1562123dfde61bf3a68e61c (diff)
downloadcatchvoid-17a58e0c4c67f27d87635bf1b2ca50fb11795ad3.tar.gz
catchvoid-17a58e0c4c67f27d87635bf1b2ca50fb11795ad3.tar.bz2
catchvoid-17a58e0c4c67f27d87635bf1b2ca50fb11795ad3.zip
Organizing source code with subdirectories
Diffstat (limited to 'src/Game.elm')
-rw-r--r--src/Game.elm39
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
- }