Changeset 20244
- Timestamp:
- 09/30/08 08:02:25 (5 years ago)
- Location:
- lang/haskell/nario
- Files:
-
- 3 modified
Legend:
- Unmodified
- Added
- Removed
-
lang/haskell/nario/Event.hs
r20243 r20244 3 3 4 4 import Const 5 import Field 5 6 6 7 data Event = 7 8 EvHitBlock ImageType Int Int 8 | EvSetField Int Int C har9 | EvSetField Int Int Cell -
lang/haskell/nario/Field.hs
r20243 r20244 8 8 module Field ( 9 9 Field, 10 Cell, 10 11 loadField, 11 12 fieldRef, -
lang/haskell/nario/Player.hs
r20243 r20244 147 147 | otherwise = player { stand = stand' } 148 148 where 149 stand' = isGround $ y player 149 stand' 150 | vy player >= 0 = isGround (-6) || isGround 5 151 | otherwise = stand player 150 152 ystand = (cellCrd $ y player) * (chrSize * one) 151 153 152 isGround y = isBlock $ fieldRef fld (cellCrd $ x player) (cellCrd y)154 isGround ofsx = isBlock $ fieldRef fld (cellCrd $ x player + ofsx * one) (cellCrd (y player)) 153 155 154 156 -- 上をチェック
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)