Add map test

This commit is contained in:
Kasper Juul Hermansen 2022-01-29 21:29:23 +01:00
parent ce4eb0b4cf
commit 9c0e546887
Signed by: kjuulh
GPG Key ID: DCD9397082D97069
3 changed files with 3 additions and 3 deletions

View File

@ -23,7 +23,7 @@ use crate::inventory_system::{
use crate::particle_system::ParticleSpawnSystem;
use crate::state::{RunState, State};
use crate::trigger_system::TriggerSystem;
use crate::RunState::MapGeneration;
mod components;
mod damage_system;

View File

@ -4,7 +4,7 @@ use rltk::{Algorithm2D, BaseMap, FontCharType, Point, Rltk, RGB};
use serde::{Deserialize, Serialize};
use specs::prelude::*;
use crate::rect::Rect;
#[derive(PartialEq, Copy, Clone, Serialize, Deserialize)]
pub enum TileType {

View File

@ -114,7 +114,7 @@ impl State {
let current_depth;
{
let mut worldmap_resource = self.ecs.write_resource::<Map>();
let worldmap_resource = self.ecs.write_resource::<Map>();
current_depth = worldmap_resource.depth;
}
self.generate_world_map(current_depth + 1);