aboutsummaryrefslogtreecommitdiff
path: root/src/Model/Player.elm
blob: c6aac2140f9504f22991a5a61011c9a1c39d56d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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