Add map test
This commit is contained in:
parent
ce4eb0b4cf
commit
9c0e546887
@ -23,7 +23,7 @@ use crate::inventory_system::{
|
|||||||
use crate::particle_system::ParticleSpawnSystem;
|
use crate::particle_system::ParticleSpawnSystem;
|
||||||
use crate::state::{RunState, State};
|
use crate::state::{RunState, State};
|
||||||
use crate::trigger_system::TriggerSystem;
|
use crate::trigger_system::TriggerSystem;
|
||||||
use crate::RunState::MapGeneration;
|
|
||||||
|
|
||||||
mod components;
|
mod components;
|
||||||
mod damage_system;
|
mod damage_system;
|
||||||
|
@ -4,7 +4,7 @@ use rltk::{Algorithm2D, BaseMap, FontCharType, Point, Rltk, RGB};
|
|||||||
use serde::{Deserialize, Serialize};
|
use serde::{Deserialize, Serialize};
|
||||||
use specs::prelude::*;
|
use specs::prelude::*;
|
||||||
|
|
||||||
use crate::rect::Rect;
|
|
||||||
|
|
||||||
#[derive(PartialEq, Copy, Clone, Serialize, Deserialize)]
|
#[derive(PartialEq, Copy, Clone, Serialize, Deserialize)]
|
||||||
pub enum TileType {
|
pub enum TileType {
|
||||||
|
@ -114,7 +114,7 @@ impl State {
|
|||||||
|
|
||||||
let current_depth;
|
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;
|
current_depth = worldmap_resource.depth;
|
||||||
}
|
}
|
||||||
self.generate_world_map(current_depth + 1);
|
self.generate_world_map(current_depth + 1);
|
||||||
|
Loading…
Reference in New Issue
Block a user