Ready for takeoff
This commit is contained in:
parent
b36a7a4b95
commit
b622b93932
10 changed files with 106 additions and 29 deletions
19
lib/render/RenderGame.hs
Normal file
19
lib/render/RenderGame.hs
Normal file
|
@ -0,0 +1,19 @@
|
|||
-- Allows to render the played game
|
||||
|
||||
module RenderGame
|
||||
( initWindow -- Initialize a window to play in
|
||||
, render -- Rener the game
|
||||
) where
|
||||
|
||||
import Game
|
||||
import Graphics.Gloss
|
||||
|
||||
----------------------------------------------------------------------
|
||||
|
||||
-- Render the game
|
||||
render :: Game -> Picture
|
||||
render _ = Blank
|
||||
|
||||
-- Initialize a window to play in
|
||||
initWindow :: String -> (Int, Int) -> (Int, Int) -> Display
|
||||
initWindow title dims offs = InWindow title dims offs
|
Reference in a new issue