Changeset 20925 for lang/haskell/nario/Actor/AnimBlock.hs
- Timestamp:
- 10/07/08 20:42:00 (3 months ago)
- Files:
-
- 1 modified
-
lang/haskell/nario/Actor/AnimBlock.hs (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lang/haskell/nario/Actor/AnimBlock.hs
r20811 r20925 1 -- -*- mode: haskell; Encoding: UTF-8 -*-1 -- -*- mode: haskell; Encoding: UTF-8 -*- 2 2 -- ブロックを叩いたときのバウンド演出 3 3 … … 6 6 ) where 7 7 8 import Multimedia.SDL hiding (Event)8 --import Multimedia.SDL hiding (Event) 9 9 10 10 import Actor (Actor(..)) 11 import AppUtil (cellCrd, putimg) 11 12 import Const 12 import AppUtil 13 import Images 14 import Field 15 import Event 13 import Field (Cell, chr2img) 14 import Event (Event(..)) 16 15 17 16 … … 33 32 y' = y self + vy' 34 33 self' = self { vy = vy', y = y' } 35 ev' = if (bDead self')34 ev' = if bDead self' 36 35 then [EvSetField (cellCrd $ x self) (startcy self) $ chr self] 37 36 else [] 38 37 39 38 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) 41 40 return () 42 41
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)