Work on weapon positioning
This commit is contained in:
@@ -116,9 +116,6 @@ wasdWithAiming w cr = wasdAim inp w $ wasdMovement (w ^. cWorld . lWorld) inp ca
|
||||
|
||||
wasdAim :: Input -> World -> Creature -> Creature
|
||||
wasdAim inp w cr
|
||||
-- | Just 0 <- inp ^? mouseButtons . ix SDL.ButtonRight
|
||||
-- , Nothing <- inp ^? mouseButtons . ix SDL.ButtonLeft =
|
||||
-- setAimPosture cr
|
||||
| SDL.ButtonRight `M.member` _mouseButtons inp
|
||||
, AtEase <- cr ^. crStance . posture =
|
||||
setAimPosture cr
|
||||
@@ -137,7 +134,7 @@ setAimPosture cr =
|
||||
|
||||
doAimTwist :: Maybe AimStance -> Float -> Creature -> Creature
|
||||
doAimTwist as x
|
||||
| as == Just TwoHandOver || as == Just TwoHandUnder = crDir +~ x
|
||||
| as == Just TwoHandTwist = crDir +~ x
|
||||
| otherwise = id
|
||||
|
||||
removeAimPosture :: Creature -> Creature
|
||||
|
||||
Reference in New Issue
Block a user