Convert generated levels to walls
Add support for converting generated levels to walls, and merge one into the entity map at the beginning of the game. There's nothing here that guarantees the character ends up *inside* the level though (they almost always don't) so that'll have to be slotted into the level generation process.
This commit is contained in:
parent
e01cf9b056
commit
9ebdc6fbb4
20 changed files with 355 additions and 114 deletions
|
|
@ -2,14 +2,14 @@ module Xanthous.Entities.Character
|
|||
( Character(..)
|
||||
, mkCharacter
|
||||
) where
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
import Xanthous.Prelude
|
||||
import Test.QuickCheck
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
import Xanthous.Entities
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
data Character where
|
||||
Character :: Character
|
||||
data Character = Character
|
||||
deriving stock (Show, Eq, Ord, Generic)
|
||||
deriving anyclass (CoArbitrary, Function)
|
||||
deriving Draw via (DrawCharacter "@" Character)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue