Commit before pushing more input events into update

This commit is contained in:
2022-10-29 22:33:10 +01:00
parent afaef480db
commit e3155752ba
36 changed files with 121 additions and 147 deletions
+5 -4
View File
@@ -12,6 +12,7 @@ import System.Random
defaultInput :: Input
defaultInput = Input
{ _clickMousePos = V2 0 0
, _textInput = RejectTextInput
, _keys = S.empty
, _mouseButtons = mempty
, _mousePos = V2 0 0
@@ -65,9 +66,10 @@ defaultCWCam =
defaultCWorld :: CWorld
defaultCWorld =
CWorld
{ _lWorld = defaultLWorld
{ _camPos = defaultCWCam
, _lWorld = defaultLWorld
, _cwGen = defaultCWGen
, _cwClock = 0
, _cClock = 0
, _pastWorlds = []
, _timeFlow = NormalTimeFlow
}
@@ -75,8 +77,7 @@ defaultCWorld =
defaultLWorld :: LWorld
defaultLWorld =
LWorld
{ _camPos = defaultCWCam
, _magnets = IM.empty
{ _magnets = IM.empty
, _modifications = IM.empty
, _creatures = IM.empty
, _crZoning = mempty --Zoning IM.empty crZoneSize zoneOfCreature