Add extra debug options for viewing room clipping

This commit is contained in:
2022-03-21 07:57:21 +00:00
parent d6285c45b3
commit 13e8ea85d2
5 changed files with 16 additions and 14 deletions
+5 -5
View File
@@ -10,7 +10,6 @@ import Dodge.Creature
import Dodge.WorldEvent.Cloud
import Dodge.SoundLogic
import Geometry.Data
import Geometry.ConvexPoly
import System.Random
import qualified Data.Set as S
@@ -43,7 +42,8 @@ initialWorld = defaultWorld
testStringInit :: World -> [String]
--testStringInit = map (concatMap $ \(_,ct,_,_) -> show ct) . invertListInvMult . yourInv
testStringInit w = [show $ f $ _roomClipping w]
where
f (x:xs) = any (convexPolysOverlap x) xs || f xs
f [] = False
testStringInit = const []
-- w = [show $ f $ _roomClipping w]
-- where
-- f (x:xs) = any (convexPolysOverlap x) xs || f xs
-- f [] = False