diff options
author | Joris Guyonvarch | 2015-03-07 18:46:47 +0100 |
---|---|---|
committer | Joris Guyonvarch | 2015-03-07 18:46:47 +0100 |
commit | 6c1f5e10631a3f66f4c85a45b6f28ffd366105c5 (patch) | |
tree | 624d833aa62ad8ce5ed172144ff69a2846d55154 /src/Model/Player.elm | |
parent | ae14beca0452b59ead64b8cdd6544824d59a55dc (diff) |
Show best score in html layout
Diffstat (limited to 'src/Model/Player.elm')
-rw-r--r-- | src/Model/Player.elm | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/Model/Player.elm b/src/Model/Player.elm index c6aac21..a9f3f00 100644 --- a/src/Model/Player.elm +++ b/src/Model/Player.elm @@ -1,11 +1,12 @@ module Model.Player ( Player + , initPlayer , playerSize , playerSpeed ) where import Model.Vec2 (..) -import Model.Config (Config) +import Model.Config (..) type alias Player = { pos : Vec2 @@ -13,6 +14,13 @@ type alias Player = , config : Config } +initPlayer : Player +initPlayer = + { pos = originVec + , speed = originVec + , config = White + } + playerSize : Float playerSize = 15 |