draw overworld
This commit is contained in:
parent
427c71c20f
commit
284163b428
4 changed files with 46 additions and 4 deletions
|
@ -1,7 +1,8 @@
|
|||
use comfy::{IVec2, UVec2};
|
||||
use comfy::{IVec2, TextureHandle, UVec2};
|
||||
|
||||
use std::collections::HashMap;
|
||||
|
||||
enum MovementCost {
|
||||
pub enum MovementCost {
|
||||
/// No movement possible - cost infinitely high.
|
||||
Infinite,
|
||||
/// There is a path for this movement - movement is cheap.
|
||||
|
@ -13,7 +14,9 @@ enum MovementCost {
|
|||
}
|
||||
|
||||
#[derive(Debug)]
|
||||
struct Tile;
|
||||
pub struct Tile {
|
||||
pub textures: Vec<TextureHandle>
|
||||
}
|
||||
|
||||
impl Tile {
|
||||
pub fn can_stand_inside(&self) -> bool {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue