aboutsummaryrefslogtreecommitdiff
path: root/src/Player.elm
blob: 56c4e973d1738623f54cf1825114a3e80a6777d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
module Player where

import Vec2 (..)
import Config (Config)

type Player =
  { pos : Vec2
  , speed : Vec2
  , config : Config
  }

playerSize : Float
playerSize = 10

playerSpeed : Float -> Float
playerSpeed dt = dt / 400