1fa4ba6b26
refactor: map.at
now returns Option<&Tile>
rather than a wall tile when requested coordinates are out-of-bounds.
2022-05-19 13:17:28 -05:00
1c29eb71cd
Rename.
2022-03-18 11:56:34 -05:00
20a14de05d
Add rectangle containment check for points.
2022-03-14 17:14:54 -05:00
7bb972c7b4
Derive Eq
and Hash
on Rect
.
2022-03-14 13:24:54 -05:00
0d5624fe4c
Bump edition and appease Clippy.
2022-03-14 11:46:48 -05:00
2202540a43
Drop BuilderData
trait.
2022-03-13 21:14:59 -05:00
ffaad6cf48
cargo fmt
2022-03-12 14:31:30 -06:00
957dcca447
Add ability to associate arbitrary BuilderData
with maps.
...
I'm finding that, for best results, I need to integrate everything into my map generation process. So for instance, object/monster spawns need to run as a filter so they can influence future steps.
This associates a `Clone + Default` type with maps and makes it available to filters. `NoData` exists for the current behavior.
All examples/tests/demos have been updated accordingly.
2022-03-12 09:45:42 -06:00
klangner
315f460274
fixed test
2021-08-26 17:12:03 +02:00
klangner
f6d1f2ac75
Merge branch 'master' of https://github.com/klangner/mapgen.rs
2021-08-26 17:11:18 +02:00
klangner
f65a5f3c6e
Test for overflow
2021-08-26 17:11:14 +02:00
9095605092
Guard against overflows.
2021-08-25 12:48:00 -05:00
96720c5662
Add getter for index.
2021-07-13 12:17:51 -05:00
klangner
e50c26356e
Added index to the Tile
2021-06-28 17:11:51 +02:00
klangner
d513dcda8f
changed TileType to struct
2021-06-28 17:06:47 +02:00
klangner
56417cf9b4
Metrics Fixed : #20 , Fixed #21 .
2021-01-14 12:18:31 +01:00
a01cbb36ab
Bump sample count to get test passing.
2021-01-12 10:27:33 -06:00
klangner
2e4fba61e4
implemented Voronoi Hive. Fixed: 30
2020-11-19 20:53:34 +01:00
klangner
569d751031
Added maze Fixed #28
2020-11-03 09:04:33 +01:00
klangner
16f4eb141b
fixed doc
2020-10-19 20:14:36 +02:00
klangner
21fa869081
Refactoring
2020-10-19 20:08:40 +02:00
klangner
ce34d237fa
Drunkard can use up to col and row 0
2020-10-17 21:51:43 +02:00
klangner
df1e52ad26
Fixed bsp-interior corridors
2020-10-17 18:02:50 +02:00
klangner
4434a35022
Added examples and tests
2020-10-17 17:31:32 +02:00
klangner
dc66f7e11b
removed mutable variable
2020-10-17 12:08:33 +02:00
klangner
4b8bb89110
refactored MapBuilder
2020-09-25 15:09:08 +02:00
klangner
be1d9e95bb
Added NoiseGenerator
2020-09-23 10:31:13 +02:00
klangner
f661da36ce
refactoring
2020-09-22 20:44:54 +02:00
klangner
278b549094
refactoring API
2020-09-22 20:38:37 +02:00
klangner
a75f565cbb
drunkard implemented
2020-09-16 11:42:59 +02:00
klangner
764233c7cf
Package refactoring
2020-09-16 09:57:59 +02:00
klangner
3b08166867
bsp interior
2020-09-15 22:33:18 +02:00
klangner
394e8203ec
Implemented BSP
2020-09-15 16:23:47 +02:00
klangner
36a72c5789
Random Rooms renamed to Simple Rooms
2020-09-15 08:45:40 +02:00
klangner
16955e02da
new creates Box. Ver 0.2
2020-09-15 07:37:20 +02:00
klangner
eaa2c78d8c
Implemented simple rooms. Fixed #14
2020-09-14 22:54:39 +02:00
klangner
eef0fc6c0b
correct room positions. no coridors yet.
2020-09-14 20:36:07 +02:00
klangner
0e40877eab
WIP. Added simple rooms
2020-09-14 20:29:36 +02:00
klangner
a1bb823147
Map generator working in wasm demo
2020-09-13 13:26:36 +02:00
klangner
7401b42790
change tiles
2020-09-08 22:13:51 +02:00
klangner
4cd00f62de
Added exit modifier
2020-09-04 12:47:46 +02:00
klangner
d93d015206
Version 0.1.2
2020-09-03 22:03:59 +02:00
klangner
293853de3d
Added doc
2020-09-03 21:58:43 +02:00
klangner
5c0a48953a
Remove unreachable areas
2020-09-03 21:54:24 +02:00
klangner
31e503faac
Added staring position modifier
2020-09-02 12:01:16 +02:00
klangner
51e0d585df
Added doc
2020-09-01 14:46:31 +02:00
klangner
3805372cf2
Cellular automata generator
2020-08-31 22:03:48 +02:00
klangner
8770d8ab77
Basic demo app
2020-08-31 14:13:52 +02:00
klangner
b82afa92a8
init
2020-08-31 11:45:59 +02:00