tvl-depot/package.yaml
Griffin Smith e76567b9e7 Add dungeon level generation
Add a dungeon level generator, which:

1. generates an infinite sequence of rectangular rooms within the
   dimensions of the level
2. removes any duplicates from that sequence
3. Generates a graph from the delaunay triangulation of the centerpoints
   of those rooms
4. Generates the minimum-spanning-tree of that delaunay triangulation,
   with weights given by line length in points
5. Adds back a subset (default 10-15%) of edges from the delaunay
   triangulation to the graph
6. Uses the resulting graph to draw corridors between the rooms, using a
   random point on the near edge of each room to pick the points of the
   corridors
2019-12-30 11:31:56 -05:00

125 lines
1.9 KiB
YAML

name: xanthous
version: 0.1.0.0
github: "glittershark/xanthous"
license: GPL-3
author: "Griffin Smith"
maintainer: "root@gws.fyi"
copyright: "2019 Griffin Smith"
extra-source-files:
- README.org
synopsis: A WIP TUI RPG
category: Game
description: Please see the README on GitHub at <https://github.com/glittershark/xanthous>
dependencies:
- base
- aeson
- array
- QuickCheck
- quickcheck-text
- quickcheck-instances
- brick
- checkers
- classy-prelude
- comonad
- constraints
- containers
- data-default
- deepseq
- fgl
- fgl-arbitrary
- file-embed
- filepath
- generic-arbitrary
- generic-monoid
- generic-lens
- groups
- hgeometry
- hgeometry-combinatorial
- JuicyPixels
- lens
- linear
- megaparsec
- MonadRandom
- mtl
- optparse-applicative
- random
- random-fu
- random-extras
- random-source
- raw-strings-qq
- reflection
- Rasterific
- streams
- stache
- semigroupoids
- tomland
- text-zipper
- vector
- vty
- yaml
- zlib
default-extensions:
- BlockArguments
- ConstraintKinds
- DataKinds
- DeriveAnyClass
- DeriveGeneric
- DerivingStrategies
- DerivingVia
- FlexibleContexts
- FlexibleInstances
- FunctionalDependencies
- GADTSyntax
- GeneralizedNewtypeDeriving
- KindSignatures
- LambdaCase
- MultiWayIf
- NoImplicitPrelude
- NoStarIsType
- OverloadedStrings
- PolyKinds
- RankNTypes
- ScopedTypeVariables
- TupleSections
- TypeApplications
- TypeFamilies
- TypeOperators
ghc-options:
- -Wall
library:
source-dirs: src
executable:
source-dirs: src
main: Main.hs
dependencies:
- xanthous
ghc-options:
- -threaded
- -rtsopts
- -with-rtsopts=-N
- -O2
tests:
test:
main: Spec.hs
source-dirs: test
ghc-options:
- -threaded
- -rtsopts
- -with-rtsopts=-N
- -O0
dependencies:
- xanthous
- tasty
- tasty-hunit
- tasty-quickcheck
- lens-properties