Changeset 20673 for lang/haskell/nario/Player.hs
- Timestamp:
- 10/04/08 14:32:30 (3 months ago)
- Files:
-
- 1 modified
-
lang/haskell/nario/Player.hs (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lang/haskell/nario/Player.hs
r20670 r20673 8 8 getScrollPos, 9 9 getPlayerYPos, 10 getPlayerHitRect, 10 11 getPlayerMedal, 11 12 getPlayerScore 12 13 ) where 13 14 14 import Multimedia.SDL hiding (Event)15 import Multimedia.SDL (blitSurface, pt) 15 16 16 17 import Util 17 import AppUtil 18 import AppUtil (KeyProc, isPressed, PadBtn(..), cellCrd, KeyState(..), getImageSurface, Rect(..)) 18 19 import Const 19 20 import Images … … 200 201 getPlayerYPos = (`div` one) . y 201 202 203 -- 当たり判定用矩形 204 getPlayerHitRect :: Player -> Rect 205 getPlayerHitRect self = Rect (xx - 6) (yy - 16) (xx + 6) yy 206 where 207 xx = x self `div` one 208 yy = y self `div` one 209 202 210 -- メダル枚数取得 203 211 getPlayerMedal :: Player -> Int
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)