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/Actor/AnimBlock.hs

    r20811 r20925  
    1 -- -*- mode: haskell; Encoding: UTF-8 -*- 
     1-- -*- mode: haskell; Encoding: UTF-8 -*- 
    22-- ブロックを叩いたときのバウンド演出 
    33 
     
    66) where 
    77 
    8 import Multimedia.SDL hiding (Event) 
     8--import Multimedia.SDL hiding (Event) 
    99 
    1010import Actor (Actor(..)) 
     11import AppUtil (cellCrd, putimg) 
    1112import Const 
    12 import AppUtil 
    13 import Images 
    14 import Field 
    15 import Event 
     13import Field (Cell, chr2img) 
     14import Event (Event(..)) 
    1615 
    1716 
     
    3332                        y' = y self + vy' 
    3433                        self' = self { vy = vy', y = y' } 
    35                         ev' = if (bDead self') 
     34                        ev' = if bDead self' 
    3635                                then [EvSetField (cellCrd $ x self) (startcy self) $ chr self] 
    3736                                else [] 
    3837 
    3938        render self imgres scrx sur = do 
    40                 blitSurface (getImageSurface imgres $ chr2img $ chr self) Nothing sur (pt (x self `div` one - scrx) (y self `div` one - 8)) 
     39                putimg sur imgres (chr2img $ chr self) (x self `div` one - scrx) (y self `div` one - 8) 
    4140                return () 
    4241