Show
Ignore:
Timestamp:
10/02/08 01:25:33 (3 months ago)
Author:
mokehehe
Message:

タイトル画面とゲーム中を作成
プレーヤーが画面外に落ちたりタイムアップならゲームオーバー

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/haskell/nario/tool/listup-imgs.hs

    r20397 r20420  
     1-- 画像ファイルを列挙して、ソースを生成 
    12 
    23import System (getArgs) 
     
    78import Data.List (intercalate) 
    89 
    9 -- �摜�t�@�C���̗�listupImgFiles path = fileEntries path >>= return . filter bmpFile 
     10-- 画像ファイルの列挙 
     11listupImgFiles path = fileEntries path >>= return . filter bmpFile 
    1012        where 
    1113                bmpFile = isJust . regex "\\.bmp$" 
    1214 
    13 regex :: String -> String -> Maybe [String] 
    14 regex rex str = matchRegex (mkRegex rex) str 
    15  
     15-- 全置換 
    1616gsub rexstr f str = loop str 
    1717        where 
     
    2222                rex = mkRegex rexstr 
    2323 
     24-- 拡張子を除いたファイル名 
    2425basefn fn = 
    2526        case regex "^(.*)\\..*$" $ basename fn of 
     
    2728                Nothing         -> fn 
    2829 
    29 -- �擪�������camelize (x:xs) = toUpper x : xs 
     30-- 先頭を大文字に 
     31camelize (x:xs) = toUpper x : xs 
    3032 
    31  
     33-- エントリ 
    3234main = do 
    3335        args <- getArgs