summaryrefslogtreecommitdiff
path: root/src/layer.rs
diff options
context:
space:
mode:
authortom barrett <spalf0@gmail.com>2019-07-02 04:23:33 -0500
committertom barrett <spalf0@gmail.com>2019-07-02 04:23:33 -0500
commit6bf9e96140c91340d6ae643b6e0896aa734d8605 (patch)
treeea5fba741326bd952b7808d402c4bbaf572d170d /src/layer.rs
parent1b5f06e902b9e5c5b0d5897fc981eeaa6dc39b37 (diff)
entities now spawn on points
Diffstat (limited to 'src/layer.rs')
-rw-r--r--src/layer.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/layer.rs b/src/layer.rs
index c9f32e8..ae645fb 100644
--- a/src/layer.rs
+++ b/src/layer.rs
@@ -3,10 +3,11 @@ use ggez::graphics::spritebatch::SpriteBatch;
use crate::tile::Tile;
use crate::tileset::Tileset;
+#[derive(Debug, Clone)]
pub struct Layer {
pub tiles: Vec<Tile>,
- pub width: usize,
- pub height: usize,
+ width: usize,
+ height: usize,
}
impl Layer {