From 97e494a7c5a105bba6a48f5025e71a376fc8673d Mon Sep 17 00:00:00 2001 From: Joris Guyonvarch Date: Sun, 8 Mar 2015 13:26:52 +0100 Subject: Save round durations --- src/Update/Update.elm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/Update/Update.elm') diff --git a/src/Update/Update.elm b/src/Update/Update.elm index ef85670..7cf4dee 100644 --- a/src/Update/Update.elm +++ b/src/Update/Update.elm @@ -13,6 +13,7 @@ import Model.Vec2 (..) import Model.Config (otherConfig) import Model.Cloud (..) import Model.Game (..) +import Model.Round (Round) import Utils.Geometry (..) import Utils.Physics (getNewPosAndSpeed) @@ -30,7 +31,7 @@ update input game = | time <- 0 , currentScore <- 0 , cloud <- initCloud - , scores <- game.currentScore :: game.scores + , rounds <- (Round game.time game.currentScore) :: game.rounds } else let newTime = game.time + input.delta -- cgit v1.2.3