Skip to content

Instantly share code, notes, and snippets.

@alucky0707
Created September 29, 2013 11:42
Show Gist options
  • Save alucky0707/6751763 to your computer and use it in GitHub Desktop.
Save alucky0707/6751763 to your computer and use it in GitHub Desktop.
free-gameでフルスクリーン表示 ref: http://qiita.com/alucky0707/items/a7eb3a14fb1de6b775ef
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