Crates.io | tdlg |
lib.rs | tdlg |
version | 3.0.0 |
source | src |
created_at | 2021-11-29 05:58:25.804517 |
updated_at | 2023-05-02 04:16:31.996957 |
description | Generates a grid of cells that could be used to build a top-down game map. Used by me to learn Rust. |
homepage | |
repository | https://github.com/derrickp/tdlg |
max_upload_size | |
id | 489109 |
size | 64,495 |
Note: This is something I've been working on while learning Rust and attempting to learn game dev. I do not guarantee it is good at all. It is also not something that has been used in a real game.
This library generates a top down map grid based on "stamping" template rooms onto the map in random locations. The templates can be defined by using creating a Room
from a string.
Templates should be looked at as defining an "empty" room. During the move to 2.0 I removed the "fill" templates as it was making it much more complicated. Eventually I am going to add more to the generation to allow for specifying generation of tables and other structures inside of the rooms before they are stamped into the grid.
You can example of the usage inside of the examples, or inside of https://github.com/derrickp/under_farm