Implement pulse rifle with explodable pulse balls
This commit is contained in:
@@ -61,16 +61,16 @@ updateRadarSweep w pt
|
||||
|
||||
findBlips :: ObjectType -> Point2 -> Float -> World -> ([Point2], S.Set (Point2, Point2))
|
||||
findBlips ob = case ob of
|
||||
ObCreature -> crBlips
|
||||
ObItem -> itemBlips
|
||||
ObWall -> wallBlips
|
||||
OTCreature -> crBlips
|
||||
OTItem -> itemBlips
|
||||
OTWall -> wallBlips
|
||||
_ -> undefined
|
||||
|
||||
makeBlip :: ObjectType -> Point2 -> RadarBlip
|
||||
makeBlip ob = case ob of
|
||||
ObCreature -> blipAt 8 (withAlpha 0.2 green) 50
|
||||
ObWall -> blipAt 2 red 50
|
||||
ObItem -> blipAt 6 blue 50
|
||||
OTCreature -> blipAt 8 (withAlpha 0.2 green) 50
|
||||
OTWall -> blipAt 2 red 50
|
||||
OTItem -> blipAt 6 blue 50
|
||||
_ -> undefined
|
||||
|
||||
-- | Radar blip at a point.
|
||||
|
||||
Reference in New Issue
Block a user