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

import Vec2 (..)

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

playerSize : Float
playerSize = 10

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