aboutsummaryrefslogtreecommitdiff
path: root/src/Game.elm
diff options
context:
space:
mode:
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
}