diff options
author | Joris Guyonvarch | 2015-03-07 15:12:02 +0100 |
---|---|---|
committer | Joris Guyonvarch | 2015-03-07 15:12:02 +0100 |
commit | 17a58e0c4c67f27d87635bf1b2ca50fb11795ad3 (patch) | |
tree | 8de99cdf0b4021ca6db6920537e7d0fa250e90bc /src/Model/Player.elm | |
parent | 336816d2e8ab4afff1562123dfde61bf3a68e61c (diff) |
Organizing source code with subdirectories
Diffstat (limited to 'src/Model/Player.elm')
-rw-r--r-- | src/Model/Player.elm | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/Model/Player.elm b/src/Model/Player.elm new file mode 100644 index 0000000..c6aac21 --- /dev/null +++ b/src/Model/Player.elm @@ -0,0 +1,20 @@ +module Model.Player + ( Player + , playerSize + , playerSpeed + ) where + +import Model.Vec2 (..) +import Model.Config (Config) + +type alias Player = + { pos : Vec2 + , speed : Vec2 + , config : Config + } + +playerSize : Float +playerSize = 15 + +playerSpeed : Float -> Float +playerSpeed dt = dt / 200 |