Added room and grid creation

This commit is contained in:
Glaeder 2024-07-07 00:01:46 +02:00
parent 5a4451d6a7
commit f3e6afc179
3 changed files with 123 additions and 3 deletions

View file

@ -13,6 +13,10 @@ impl Default for Grid {
}
impl Grid {
pub fn new(nodes: Vec<Vec2>, connections: Vec<(usize, usize)>) -> Self {
Grid { nodes, connections }
}
fn load() -> Self {
let mut grid = Self {
nodes: vec![