Show
Ignore:
Timestamp:
10/07/08 20:42:00 (3 months ago)
Author:
mokehehe
Message:

ソース整理

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/haskell/nario/Player.hs

    r20811 r20925  
    2626 
    2727import Util 
    28 import AppUtil (KeyProc, isPressed, PadBtn(..), cellCrd, KeyState(..), getImageSurface, Rect(..)) 
     28import AppUtil (KeyProc, isPressed, PadBtn(..), cellCrd, KeyState(..), getImageSurface, Rect(..), putimg) 
    2929import Const 
    3030import Images 
     
    120120moveX :: KeyProc -> Player -> Player 
    121121moveX kp self = 
    122         if (stand self) 
     122        if stand self 
    123123                then self' { lr = lr', pat = pat', anm = anm' } 
    124124                else self' 
     
    324324renderPlayer sur imgres scrx self = do 
    325325        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 
    327327                else return () 
    328328        where 
    329                 pos = case pltype self of 
    330                         SmallNario      -> pt sx $ sy - chrSize + 1 
    331                         otherwise       -> pt sx $ sy - chrSize * 2 + 1 
     329                posy = case pltype self of 
     330                        SmallNario      -> sy - chrSize + 1 
     331                        otherwise       -> sy - chrSize * 2 + 1 
    332332                imgtype 
    333333                        | plstate self == Dead  = ImgNarioDead