Commit Graph

111 Commits

Author SHA1 Message Date
3695eec13a Add secrets config for Discord.
All checks were successful
continuous-integration/drone/push Build is passing
2022-03-18 13:37:21 -05:00
469747919b Try pushing notifications to Discord.
Some checks failed
continuous-integration/drone/push Build is failing
2022-03-18 13:32:03 -05:00
3737cdee6a Install Clippy.
All checks were successful
continuous-integration/drone/push Build is passing
2022-03-18 12:45:53 -05:00
4926caa1ce Install rustfmt.
Some checks failed
continuous-integration/drone/push Build is failing
2022-03-18 12:42:59 -05:00
c538ef6877 Update Drone config.
Some checks failed
continuous-integration/drone/push Build is failing
2022-03-18 12:33:41 -05:00
72b51909c3 Add Drone configuration. 2022-03-18 12:05:27 -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
a49e9d019b Use correct types so builder_data example works. 2022-03-14 11:39:23 -05:00
66a470d669 Remove type parameter. 2022-03-14 11:03:00 -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
efad0132ff Add (currently non-functional) example of using custom data in a filter. 2022-03-12 14:10:29 -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
1ef42b11ad removed 2021-12-06 10:33:01 +01:00
klangner
51845f9f93 v=0.5.2 2021-08-26 17:12:48 +02: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
Krzysztof Langner
289e693092
Merge pull request #38 from ndarilek/master
Guard against overflows.
2021-08-26 17:08:49 +02:00
9095605092 Guard against overflows. 2021-08-25 12:48:00 -05:00
klangner
b9d633eb52 v 0.5.1 2021-08-11 16:08:30 +02:00
Krzysztof Langner
363b90cde9
Merge pull request #37 from ndarilek/master
Add getter for index.
2021-07-15 10:01:58 +02: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
082f251143 Version 0.5 2021-06-28 17:08:09 +02:00
klangner
d513dcda8f changed TileType to struct 2021-06-28 17:06:47 +02:00
klangner
5c440c17ba Improved map selection in demo app 2021-01-15 14:26:19 +01:00
klangner
1474324a1e Better map selection. Prepare for prefabs 2021-01-15 14:24:52 +01:00
klangner
56417cf9b4 Metrics Fixed: #20, Fixed #21. 2021-01-14 12:18:31 +01:00
Krzysztof Langner
f25b454c00
Merge pull request #34 from ndarilek/master
Upgrade to rand 0.8.
2021-01-12 18:58:55 +01:00
a01cbb36ab Bump sample count to get test passing. 2021-01-12 10:27:33 -06:00
92627630d3 Upgrade to rand 0.8. 2021-01-12 09:16:49 -06:00
klangner
128c8104b2 updated demo 2020-11-19 21:00:36 +01:00
klangner
2e4fba61e4 implemented Voronoi Hive. Fixed: 30 2020-11-19 20:53:34 +01:00
klangner
a14aaee0a7 Improved README example 2020-11-03 09:24:33 +01:00
klangner
569d751031 Added maze Fixed #28 2020-11-03 09:04:33 +01:00
klangner
322eca52cf bsp rooms 2020-10-22 22:35:46 +02:00
klangner
f231a5f4d6 BSP Rooms as an example 2020-10-22 22:35:06 +02:00
klangner
fc1bebb4c3 Create map with the given size 2020-10-19 21:39:30 +02:00
klangner
89e9bf072e smaller example1 2020-10-19 21:35:24 +02:00
klangner
3334184ad8 Cell size depends on map size 2020-10-19 21:28:01 +02: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
45c76e18c7 Fixed #13. Show starting end exit point 2020-10-18 21:40:40 +02:00
klangner
ee8f9aa273 Renamed const to ipper cases 2020-10-18 20:44:08 +02:00
klangner
d6b7c29736 refactore draw_tile 2020-10-18 13:07:36 +02:00
klangner
6d25e17e44 fixed assets location 2020-10-17 22:30:28 +02:00