Fix---at least partially---level generation bug

This commit is contained in:
2021-03-28 18:51:39 +02:00
parent bacaded2a5
commit 1c11d82878
10 changed files with 214 additions and 72 deletions
+18
View File
@@ -0,0 +1,18 @@
{-# LANGUAGE TemplateHaskell #-}
module Dodge.Room.Data
where
import Dodge.Data
import Control.Lens
data Room = Room
{ _rmPolys :: [Poly]
, _rmLinks :: [(Point2,Float)]
, _rmPath :: [(Point2, Point2)]
, _rmPS :: [PlacementSpot]
, _rmBound :: Poly
}
data RoomLink = RL {_rlPos :: Point2, _rlRot :: Float}
makeLenses ''Room
makeLenses ''RoomLink