wip: current project state

This commit is contained in:
Emil
2026-06-21 22:27:20 +03:00
parent 88892db493
commit a5436897ed
48 changed files with 4583 additions and 760 deletions
+7
View File
@@ -31,6 +31,13 @@ impl Player {
}
}
pub fn set_position(&self, manager: &mut EntityManager, cx: f32, cy: f32) {
if let Some(e) = manager.get_mut(self.entity_id) {
e.cx = cx;
e.cy = cy;
}
}
pub fn move_left(&mut self, manager: &mut EntityManager) {
if let Some(e) = manager.get_mut(self.entity_id) {
e.set_horizontal_vel(-self.move_speed);