Move towards drawing shapes according to location

This commit is contained in:
2022-06-23 14:53:08 +01:00
parent 0f01e422f6
commit 56b9b2dd9e
2 changed files with 16 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE StrictData #-}
module Dodge.Data.ForegroundShape where
import Geometry
import ShapePicture
import Control.Lens
data ForegroundShape = ForegroundShape
{ _fsID :: Int
, _fsPos :: Point2
, _fsRot :: Float
, _fsPic :: SPic
}
deriving (Eq,Show,Ord)
makeLenses ''ForegroundShape
+1
View File
@@ -92,6 +92,7 @@ defaultWorld = World
-- , _config = defaultConfig
, _sideEffects = return
, _foregroundShape = mempty
, _shapes = mempty
, _distortions = []
, _gameRooms = []
, _roomClipping = []