aboutsummaryrefslogtreecommitdiff
path: root/src/Game.elm
diff options
context:
space:
mode:
authorJoris Guyonvarch2014-10-05 23:10:18 +0200
committerJoris Guyonvarch2014-10-05 23:10:32 +0200
commit4521cdf1bb5725c9d497e5fb0c03943ad03a052f (patch)
tree8b7247e9b1b2c950c7bec39548bfe860965c5126 /src/Game.elm
parentc2583cf7ff8684d1194c61ab132e23d7ccebcd51 (diff)
downloadcatchvoid-4521cdf1bb5725c9d497e5fb0c03943ad03a052f.tar.gz
catchvoid-4521cdf1bb5725c9d497e5fb0c03943ad03a052f.tar.bz2
catchvoid-4521cdf1bb5725c9d497e5fb0c03943ad03a052f.zip
Adding multiple moving points to catch
Diffstat (limited to 'src/Game.elm')
-rw-r--r--src/Game.elm12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/Game.elm b/src/Game.elm
index 8de0c40..83d8baa 100644
--- a/src/Game.elm
+++ b/src/Game.elm
@@ -1,16 +1,14 @@
module Game where
import Player (..)
-import Enemy (..)
-import EnemyState (..)
-import Target(..)
+import Cloud (..)
import Vec2 (Vec2)
type Game =
{ time : Float
+ , score : Int
, player : Player
- , target : Target
- , enemyState : EnemyState
+ , cloud : Cloud
, bestScore : Int
}
@@ -22,8 +20,8 @@ initialGame playerPos bestScore =
}
in
{ time = 0
+ , score = 0
, player = initPlayer
- , target = initTarget
- , enemyState = initEnemyState
+ , cloud = initCloud
, bestScore = bestScore
}