summaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authorKai Stevenson <kai@kaistevenson.com>2026-08-24 20:15:21 -0700
committerKai Stevenson <kai@kaistevenson.com>2026-08-24 20:15:21 -0700
commite28f8b4ef5c0744912afd49d8d1ba9a94e144613 (patch)
treea38fe431647834ea21ddd03984e41e5d00c32d50 /src/main.rs
parent3bae37a2d439804aee543473ef9b44f18692a67f (diff)
fixes for small entities
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/main.rs b/src/main.rs
index f896de3..ccca2db 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -6,7 +6,6 @@ mod renderer;
mod sim;
use futures::executor;
-use rand::random_range;
use std::{collections::VecDeque, sync::Arc, time::Instant};
use winit::{
application::ApplicationHandler,
@@ -30,7 +29,7 @@ use crate::{
InputManager,
},
renderer::RendererState,
- sim::{cell::Cell, rb_manager::DebugRenderMode, sim_manager::SimManager},
+ sim::{rb_manager::DebugRenderMode, sim_manager::SimManager},
};
pub type Error = Box<dyn std::error::Error>;
@@ -87,7 +86,7 @@ impl App {
));
}
- if self.input_manager.pressed(Input::Action2) {
+ if self.input_manager.pressed(Input::Grenade) {
sim.create_entity(entity_grenade_def(self.input_manager.world_mouse_pos, 3.0));
}