First attempt to add NPCs

This commit is contained in:
2024-05-08 00:07:10 +02:00
parent 12e6760fb5
commit 78f4d7911b
6 changed files with 158 additions and 11 deletions

11
src/direction.rs Normal file
View File

@@ -0,0 +1,11 @@
#[derive(Clone, Debug)]
pub struct Direction {
pub x: isize,
pub y: isize
}
impl Direction {
pub fn new(x: isize, y: isize) -> Self {
Self { x, y }
}
}