Work towards unifying all in game input
This commit is contained in:
@@ -19,7 +19,7 @@ import qualified SDL
|
||||
-- | The AI equivalent for your control.
|
||||
yourControl :: Creature -> World -> World
|
||||
yourControl cr w
|
||||
| inputFocus w = w
|
||||
| inInputFocus w = w
|
||||
| not intopinv = w & cWorld . lWorld . creatures . ix (_crID cr)
|
||||
%~ wasdWithAiming w (_mvSpeed $ _crMvType cr)
|
||||
| otherwise =
|
||||
|
||||
Reference in New Issue
Block a user