Add config.json file and Aeson dependency in package.yaml
This commit is contained in:
@@ -0,0 +1,4 @@
|
|||||||
|
{
|
||||||
|
"windowxsize": 800,
|
||||||
|
"windowysize": 600
|
||||||
|
}
|
||||||
+2
-1
@@ -28,7 +28,7 @@ dependencies:
|
|||||||
- sdl2-mixer
|
- sdl2-mixer
|
||||||
- text
|
- text
|
||||||
- OpenGL
|
- OpenGL
|
||||||
- OpenGLRaw
|
#- OpenGLRaw
|
||||||
- raw-strings-qq
|
- raw-strings-qq
|
||||||
- bytestring
|
- bytestring
|
||||||
- lens
|
- lens
|
||||||
@@ -44,6 +44,7 @@ dependencies:
|
|||||||
- transformers
|
- transformers
|
||||||
- foldl
|
- foldl
|
||||||
- linear
|
- linear
|
||||||
|
- aeson
|
||||||
|
|
||||||
library:
|
library:
|
||||||
source-dirs: src
|
source-dirs: src
|
||||||
|
|||||||
@@ -112,8 +112,6 @@ withRandomDir acc f cid w = over (creatures . ix cid . crDir) (\d -> d - a)
|
|||||||
withVelWthHiteff :: Point2 -> Float -> HitEffect -> Int -> World -> World
|
withVelWthHiteff :: Point2 -> Float -> HitEffect -> Int -> World -> World
|
||||||
withVelWthHiteff vel width hiteff cid w
|
withVelWthHiteff vel width hiteff cid w
|
||||||
= over particles' ((:) newbul)
|
= over particles' ((:) newbul)
|
||||||
-- . over tempLightSources ((:) (tLightAt 4 pos))
|
|
||||||
-- . lowLightAt pos2
|
|
||||||
$ set randGen g
|
$ set randGen g
|
||||||
w
|
w
|
||||||
where cr = _creatures w IM.! cid
|
where cr = _creatures w IM.! cid
|
||||||
|
|||||||
-10
@@ -25,16 +25,6 @@ winConfig x y = defaultWindow
|
|||||||
, windowResizable =True
|
, windowResizable =True
|
||||||
}
|
}
|
||||||
|
|
||||||
--setupLoop :: String
|
|
||||||
-- -> CInt
|
|
||||||
-- -> CInt
|
|
||||||
-- -> IO setupParams
|
|
||||||
-- -> (setupParams -> IO ())
|
|
||||||
-- -> world
|
|
||||||
-- -> (setupParams -> world -> IO setupParams)
|
|
||||||
-- -> (world -> Event -> Maybe world)
|
|
||||||
-- -> (world -> Maybe world)
|
|
||||||
-- -> IO ()
|
|
||||||
setupLoop :: String
|
setupLoop :: String
|
||||||
-> CInt
|
-> CInt
|
||||||
-> CInt
|
-> CInt
|
||||||
|
|||||||
Reference in New Issue
Block a user