start move ment

This commit is contained in:
luckyturtledev 2024-07-07 00:52:19 +02:00
parent 9c8a399b38
commit d90b0ad992
3 changed files with 53 additions and 8 deletions

View file

@ -2,7 +2,7 @@ use crate::{
activities::{house, overworld, Activity},
State
};
use comfy::EngineContext;
use comfy::{EngineContext, IVec2};
use std::ops::Sub;
#[derive(Debug)]
@ -10,14 +10,16 @@ pub struct Ghost {
/// current electric charge of the Ghost
pub charge: f32,
/// max electric charge of the Ghost
pub max_charge: f32
pub max_charge: f32,
pub overworld_pos: IVec2,
}
impl Default for Ghost {
fn default() -> Self {
Self {
charge: 1000.0,
max_charge: 1000.0
max_charge: 1000.0,
overworld_pos: IVec2::ZERO,
}
}
}