Created
September 29, 2013 11:42
-
-
Save alucky0707/6751763 to your computer and use it in GitHub Desktop.
free-gameでフルスクリーン表示 ref: http://qiita.com/alucky0707/items/a7eb3a14fb1de6b775ef
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Data.Function | |
import Graphics.UI.FreeGame | |
main = do | |
font <- loadFont "VL-PGothic-Regular.ttf" | |
-- GUIParamの_windowedをFalseにするとフルスクリーンになる | |
-- デフォルトはTrue | |
-- (ウィンドウモードか、ってことらしい) | |
-- 途中で変更は(多分)できない。 | |
runGame (def {_windowed = False}) $ fix $ \loop-> do | |
translate (V2 50 300) $ colored black $ text font 40 "Push Q to quit" | |
tick | |
bracket | |
q <- keyChar 'Q' | |
unless q loop |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment