Changeset 20925 for lang/haskell/nario/Player.hs
- Timestamp:
- 10/07/08 20:42:00 (3 months ago)
- Files:
-
- 1 modified
-
lang/haskell/nario/Player.hs (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lang/haskell/nario/Player.hs
r20811 r20925 26 26 27 27 import Util 28 import AppUtil (KeyProc, isPressed, PadBtn(..), cellCrd, KeyState(..), getImageSurface, Rect(..) )28 import AppUtil (KeyProc, isPressed, PadBtn(..), cellCrd, KeyState(..), getImageSurface, Rect(..), putimg) 29 29 import Const 30 30 import Images … … 120 120 moveX :: KeyProc -> Player -> Player 121 121 moveX kp self = 122 if (stand self)122 if stand self 123 123 then self' { lr = lr', pat = pat', anm = anm' } 124 124 else self' … … 324 324 renderPlayer sur imgres scrx self = do 325 325 if undeadCount self == 0 || (undeadCount self .&. 1) /= 0 326 then blitSurface (getImageSurface imgres imgtype) Nothing sur pos >> return ()326 then putimg sur imgres imgtype sx posy 327 327 else return () 328 328 where 329 pos = case pltype self of330 SmallNario -> pt sx $sy - chrSize + 1331 otherwise -> pt sx $sy - chrSize * 2 + 1329 posy = case pltype self of 330 SmallNario -> sy - chrSize + 1 331 otherwise -> sy - chrSize * 2 + 1 332 332 imgtype 333 333 | plstate self == Dead = ImgNarioDead
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)